note 20336 added to function.localtime
| From: | bens_nospam at benjamindsmith dot com | Date: | Sat, 30 Mar 2002 23:29:52 +0000 |
| Subject: | note 20336 added to function.localtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28418@lists.php.net to get a copy of this message | ||
You must keep in mind the difference between your server's time and your client's time!
I ran into this one when I wrote a calendar-based reminder system with SMS messaging - guys back
east were always getting their messages late. (!?!)
I wrote two functions as wrappers for date handling, ServerTime() and ClientTime() that take client
time (integer timestamp) and translate to server time and vice-versa based on config file settings.
Needless to say, you CANNOT FORGET THIS.
--
http://www.php.net/manual/en/function.localtime.php
http://master.php.net/manage/user-notes.php?action=edit+20336
http://master.php.net/manage/user-notes.php?action=delete+20336
http://master.php.net/manage/user-notes.php?action=reject+20336