php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23302 strtotime("01-MAY-1982 00:00:00") returns wrong timestamp
Submitted: 2003-04-22 04:44 UTC Modified: 2003-04-23 02:50 UTC
From: kchen at net4com dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.3.1 OS: Linux
Private report: No CVE-ID: None
 [2003-04-22 04:44 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-23 02:50 UTC] sniper@php.net
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)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 15:01:56 2024 UTC