|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-05 17:22 UTC] mattwil@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 14:00:01 2025 UTC |
Description: ------------ date() function works incorrect :-( Reproduce code: --------------- # check line 179-180, it should add a minute every step for ($i=0,$d=1224964800;$d<=1225051200;$d+=60,++$i) echo "<br>$i -> ".date('Y-m-d H:i:s',$d); Expected result: ---------------- 179 -> 2008-10-26 02:59:00 180 -> 2008-10-26 03:00:00 181 -> 2008-10-26 03:01:00 182 -> 2008-10-26 03:02:00 Actual result: -------------- 179 -> 2008-10-26 02:59:00 180 -> 2008-10-26 02:00:00 181 -> 2008-10-26 02:01:00 182 -> 2008-10-26 02:02:00