|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-03-01 02:41 UTC] dtajchreber@php.net
-Status: Open
+Status: Bogus
[2011-03-01 02:41 UTC] dtajchreber@php.net
[2011-03-01 15:30 UTC] tomas dot brastavicius at quantum dot lt
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
Description: ------------ strtotime() returns invalid timestamp with DST transition at new year midnight Test script: --------------- date_default_timezone_set("Europe/Vilnius"); echo date("Y-m-d H:i:s", strtotime("2002-12-31 23:59:59 +1 sec")) . "\n"; date_default_timezone_set("Asia/Baku"); echo date("Y-m-d H:i:s", strtotime("1995-12-31 23:59:59 +1 sec")) . "\n"; date_default_timezone_set("Africa/Cairo"); echo date("Y-m-d H:i:s", strtotime("2010-09-09 23:59:59 +1 sec")) . "\n"; // OK date_default_timezone_set("Asia/Karachi"); echo date("Y-m-d H:i:s", strtotime("2009-04-14 23:59:59 +1 sec")) . "\n"; // OK Expected result: ---------------- 2003-01-01 01:00:00 1996-01-01 01:00:00 2010-09-10 01:00:00 2009-04-15 01:00:00 Actual result: -------------- 2003-01-01 00:00:00 1996-01-01 00:00:00 2010-09-10 01:00:00 2009-04-15 01:00:00