|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-02-03 13:56 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2012-02-03 13:56 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 11:00:02 2025 UTC |
Description: ------------ After 2011-10-30 03:59:59, there should be 2011-10-30 04:00:00 there should not be 2011-10-30 03:00:00 Test script: --------------- <?php $t1 = "1319936371"; for ($i=0;$i<100;$i++) { $t = $t1+$i; echo date("Y-m-d H:i:s", $t)."<br>"; } ?> Expected result: ---------------- ... ... 1319936397 2011-10-30 03:59:57 1319936398 2011-10-30 03:59:58 1319936399 2011-10-30 03:59:59 1319936400 2011-10-30 04:00:00 1319936401 2011-10-30 04:00:01 1319936402 2011-10-30 04:00:02 ... ... Actual result: -------------- ... ... 1319936397 2011-10-30 03:59:57 1319936398 2011-10-30 03:59:58 1319936399 2011-10-30 03:59:59 1319936400 2011-10-30 03:00:00 1319936401 2011-10-30 03:00:01 1319936402 2011-10-30 03:00:02 ... ...