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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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 07:01:32 2024 UTC