ID:               33578
 User updated by:  jeremy at techtrav dot com
 Reported By:      jeremy at techtrav dot com
-Status:           Closed
+Status:           Open
 Bug Type:         Date/time related
 Operating System: Windows XP Apache 2
-PHP Version:      5.1.0b2
+PHP Version:      5.1.X newest CVS
 Assigned To:      derick
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2005-07-05 23:33:34] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to