note 7463 modified in strtotime by ronabop
| From: | ronabop@php.net | Date: | Fri, 29 Sep 2000 15:07:37 +0000 |
| Subject: | note 7463 modified in strtotime by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5674@lists.php.net to get a copy of this message | ||
The lost day "bug" I think has to do with the timestamp. At least in my case if you do not
specify a time on your date then when the date is inserted into you db with a unix time stamp it
inserts 00:00:00 or something like that... according to php that is not actually the day but the day
before. so Tue Jul 11 00:00:00 2000 PDT is seen by php as Wed Jul 10 2000 since the hours, minutes
and seconds are all zero.
-joel
http://www.php.net/manual/function.strtotime.php