note 44656 added to function.date
| From: | m dot kristall at mkpx dot tk | Date: | Thu, 12 Aug 2004 06:42:14 +0000 |
| Subject: | note 44656 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74525@lists.php.net to get a copy of this message | ||
Just found this (using PHP 4, so it's possible it's changed in 5):
<?php
echo date ("m/d/Y", 0);
?>
Instead of returning the expected "01/01/1970" will return "12/31/1969".
This could potentially cause problems with dates not working right.
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44656
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44656&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44656&report=yes
Search -- http://master.php.net/manage/user-notes.php