[Solved]: ecard timezone way off [Solved]: ecard timezone way off
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: ecard timezone way off

Started by natrlhy, July 24, 2004, 02:36:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

natrlhy

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!

kegobeer

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.   ;)
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

natrlhy

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)  ???  :)

Joachim Müller

check your server clock.

GauGau

natrlhy


Joachim Müller

I have no clue why this happens then, sorry. Anyone else?

GauGau

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

natrlhy

#7
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!

Nibbler

#8
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]

natrlhy

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