Edit report at https://bugs.php.net/bug.php?id=64401&edit=1
ID: 64401 Updated by: [email protected] Reported by: mohsen dot taheri at gmail dot com Summary: 21 March 2012 Strange result -Status: Open +Status: Feedback Type: Bug Package: Date/time related Operating System: Ubuntu PHP Version: 5.3Git-2013-03-10 (Git) Block user comment: N Private report: N New Comment: Which timezone? You probably discovered DST in your timezone. Previous Comments: ------------------------------------------------------------------------ [2013-03-11 07:29:36] mohsen dot taheri at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=64401&edit=1
