|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-03-11 07:29 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
I use date_default_timezone_set("Asia/Tehran"); 2012-03-21 is the second day of year in Tehran timezone !!!