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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kchen at net4com dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 12:01:27 2025 UTC