#33578 [Asn->Csd]: Problem with strtotime method
| From: | derick@php.net | Date: | Wed, 20 Jul 2005 10:19:47 +0000 |
| Subject: | #33578 [Asn->Csd]: Problem with strtotime method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82197@lists.php.net to get a copy of this message | ||
ID: 33578
Updated by: derick@php.net
Reported By: jeremy at techtrav dot com
-Status: Assigned
+Status: Closed
Bug Type: Date/time related
Operating System: Windows XP Apache 2
PHP Version: 5.1.X newest CVS
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-07-11 18:55:36] derick@php.net
Ok, I'll add that too.
------------------------------------------------------------------------
[2005-07-11 17:35:38] jeremy at techtrav dot com
You did fix "11 Oct" but you didn't fix "11Oct" which also used to
work. this returns 01/01/1970
11Oct is an important format to have working, as it is the format that
many use in the travel industry.
------------------------------------------------------------------------
[2005-07-05 23:33:34] derick@php.net
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2005-07-05 23:22:02] derick@php.net
Indeed it does not parse "11 Oct" anymore, I'll fix this.
------------------------------------------------------------------------
[2005-07-05 23:18:22] jeremy at techtrav dot com
Description:
------------
I just updated from 5.0.4 to 5.1.0b2 to test on my windows box.
strtotime seems to be very messed up returning compeletely wrong dates.
Reproduce code:
---------------
<?
echo date('m/d/Y', strtotime('Oct 11'));
echo '<br>';
echo date('m/d/Y', strtotime('11 Oct'));
echo '<br>';
echo date('m/d/Y', strtotime('11 Oct 2005'));
?>
Expected result:
----------------
10/11/2005
10/11/2005
10/11/2005
Actual result:
--------------
10/10/2005
07/05/2005
10/10/2005
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33578&edit=1