From:             dbrong at gmail dot com
Operating system: Windows 2000
PHP version:      5CVS-2006-10-03 (snap)
PHP Bug Type:     Date/time related
Bug description:  strtotime("060901") does not produce a correct date stamp for 
2006-09-01

Description:
------------
I was using date("Y-m-d", strtotime("060901")) to produce a date formatted
as "2006-09-01" and this does not work anymore in the latest PHP 5 release.
 It produces the actual date of the system's current time (2006-10-03 in
this case).

If I modify it as strtotime("20060901") it works fine.

Reproduce code:
---------------
date("Y-m-d", strtotime("060901")) will output the current system date
(2006-10-03 in this case).

Expected result:
----------------
2006-10-03 (or the current date you run the script)

Actual result:
--------------
should be 2006-09-01

-- 
Edit bug report at http://bugs.php.net/?id=39026&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39026&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39026&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39026&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39026&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39026&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39026&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39026&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39026&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39026&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39026&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39026&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39026&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39026&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39026&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39026&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39026&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39026&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39026&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39026&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39026&r=mysqlcfg

Reply via email to