#34805 [Opn->Asn]: strtotime ceases to work on future years
| From: | sniper@php.net | Date: | Mon, 10 Oct 2005 10:24:31 +0000 |
| Subject: | #34805 [Opn->Asn]: strtotime ceases to work on future years | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86328@lists.php.net to get a copy of this message | ||
ID: 34805
Updated by: sniper@php.net
Reported By: alex at magickal dot co dot uk
-Status: Open
+Status: Assigned
Bug Type: Date/time related
-Operating System: Windows XP
+Operating System: *
-PHP Version: 5.1.0RC1
+PHP Version: 5CVS-2005-10-10 (cvs)
-Assigned To:
+Assigned To: derick
New Comment:
And within Linux it returns bool(false), Derick, anything you can do
about this or do we just document it or reclassify this as feature
request? :)
Previous Comments:
------------------------------------------------------------------------
[2005-10-10 12:11:05] alex at magickal dot co dot uk
Description:
------------
strtotime converts dates into nice handlable integers. This should work
on ALL dates. I can see no reason whatsoever why it should cease half
way through a century! Its a bit too much like the millenium bug!
And as such IS a bug.
Alex
Reproduce code:
---------------
$defaultdate = strtotime("01 January 2050");
echo $defaultdate;
Expected result:
----------------
expected result would be an integer NOT -1.
Actual result:
--------------
-1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34805&edit=1