#23302 [Opn->Csd]: strtotime("01-MAY-1982 00:00:00") returns wrong timestamp
| From: | sniper@php.net | Date: | Wed, 23 Apr 2003 07:50:22 +0000 |
| Subject: | #23302 [Opn->Csd]: strtotime("01-MAY-1982 00:00:00") returns wrong timestamp | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38135@lists.php.net to get a copy of this message | ||
ID: 23302
Updated by: sniper@php.net
Reported By: kchen at net4com dot com
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: Linux
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Works fine here using the latest snapshot.
(On rh6.2, if it doesn't work for you, it's propably a glibc problem)
Previous Comments:
------------------------------------------------------------------------
[2003-04-22 04:44:46] kchen at net4com dot com
strtotime("01-MAY-1982 00:00:00") returns timestamp for 30-Apr-1981
23:30:00. This happens only for the above date, use
print_r(getdate(strtotime("01-MAY-1982 00:00:00"))) to check.
Any others e.g. 01-MAY-1982 01:00:00, 01-MAY-1981 00:00:00 etc work
fine.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23302&edit=1