#19744 [Opn->Csd]: strtotime and mktime fails before 1970
| From: | iliaa@php.net | Date: | Thu, 03 Oct 2002 22:29:22 +0000 |
| Subject: | #19744 [Opn->Csd]: strtotime and mktime fails before 1970 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21414@lists.php.net to get a copy of this message | ||
ID: 19744
Updated by: iliaa@php.net
Reported By: mads-nospam-@westermann.dk
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Redhat 7.3
PHP Version: 4.2.3
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-10-03 17:21:54] mads-nospam-@westermann.dk
the code:
<?php
print strtotime('1960-12-05') ."<br>";
print mktime(0,0,0,12,5,1960);
?>
prints:
-1
-1
There doesn't seem to be a problem after 1970
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19744&edit=1