#47835 [Opn->Bgs]: strtotime or date works wrong

From: Date: Mon, 30 Mar 2009 07:20:23 +0000
Subject: #47835 [Opn->Bgs]: strtotime or date works wrong
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-135302@lists.php.net to get a copy of this message
 ID:               47835
 Updated by:       derick@php.net
 Reported By:      snowyurik at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      5.2.9
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

This is also expected behavior, remember that there is no February
30th!


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

[2009-03-30 04:00:12] snowyurik at gmail dot com

Description:
------------
echo date('Y-m-d H:i:s',strtotime('2009-02-30 00:00:00'));

this code return
"2009-03-02 00:00:00" instead of "2009-02-30 00:00:00"

Reproduce code:
---------------
echo date('Y-m-d H:i:s',strtotime('2009-02-30 00:00:00'));

Expected result:
----------------
2009-02-30 00:00:00



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47835&edit=1



Thread (2 messages)

« previous php.bugs (#135302) next »