forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Ecards & Email => Topic started by: natrlhy on July 24, 2004, 02:36:10 am
-
When I send an ecard, it says I sent an ecard on "Saturday, July,30,2004 12:31 AM [GMT]" when i really sent it today, July 23, 2004 5:31 PM [PDT]
Is there a way to change this to be accurate?
Thanks!
-
The next version will include the ability to set the local timezone. You can hard code it, but I'd just wait. And technically, the time is accurate. GMT-7 = PDT. ;)
-
Can't wait for the next release ;)
But GMT-7? That's minus 7 hours, not days too is it? I sent it on the 23rd (5:31PM PST), the ecard said the 30th (12:31AM GMT) ??? :)
-
check your server clock.
GauGau
-
Server is set correctly...
-
I have no clue why this happens then, sorry. Anyone else?
GauGau
-
Post a link to your site - I'd like to send an ecard and see what time shows up. Please create a normal user account and post the login/pass here.
Also, are you sending email via php or smtp? The mail server's time could be off.
-
I modified the mailer.inc.php file to point to the server I wanted mail routed through. The server time on that mail server is correct.
Please let me know when I can delete the account.
Thanks for looking into this!
-
I can see what is wrong - the date stamp is using %V, which is the week number of the year eg 1 to 53. Change it to %d.
[fixed in stable (ecard.php v1.9), devel will use GMT offset so not affected by this]
-
Thats much better!
Sent by natrlhy from IP x.x.x.x at Tuesday, July,27,2004 11:17 PM [GMT]
Now just awaiting the next release to change the timezone.
Thanks! I have delete the test account.
For reference, I modified this line in the ecard.php file:
$message .= "Sent by $sender_name from IP {$_SERVER['REMOTE_ADDR']} at ".gmstrftime("%A, %B,%d,%Y %I:%M %p ", time())." [GMT]";
|
this was %V