Bug #64401 [NEW]: 21 March 2012 Strange result

From: Date: Mon, 11 Mar 2013 07:29:36 +0000
Subject: Bug #64401 [NEW]: 21 March 2012 Strange result
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-177715@lists.php.net to get a copy of this message
From: mohsen dot taheri at gmail dot com Operating system: Ubuntu PHP version: 5.3Git-2013-03-10 (Git) Package: Date/time related Bug Type: Bug Bug description:21 March 2012 Strange result Description: ------------ strtotime("2012-03-21 00:00:01") return value is the same as strtotime("2012-03-21 01:00:01") both of the are 1332276001 this problem range is 2012-03-21 00:00:00 to 2012-03-21 01:00:00 I don't face this problem in any other dates Test script: --------------- echo date("Y-m-d H:i:s", strtotime("2012-03-21 00:00:01"))."\n"; echo date("Y-m-d H:i:s", strtotime("2012-03-21 01:00:01"))."\n"; Expected result: ---------------- 2012-03-21 00:00:01 2012-03-21 01:00:01 Actual result: -------------- 2012-03-21 01:00:01 2012-03-21 01:00:01 -- Edit bug report at https://bugs.php.net/bug.php?id=64401&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64401&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64401&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64401&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64401&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64401&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64401&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64401&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64401&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64401&r=support Expected behavior: https://bugs.php.net/fix.php?id=64401&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64401&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64401&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64401&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64401&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64401&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64401&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64401&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64401&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64401&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64401&r=mysqlcfg

« previous php.bugs (#177715) next »