|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-31 12:15 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 09 04:00:01 2026 UTC |
Description: ------------ When the year changes it displays not the expected results Reproduce code: --------------- <?php for($i=0; $i<7; $i++) { echo date("o-m-d", mktime() + $i * 86400); echo '<br />'; } ?> Expected result: ---------------- 2009-12-31 2010-01-01 2010-01-02 2010-01-03 2010-01-04 2010-01-05 2010-01-06 Actual result: -------------- 2009-12-31 2009-01-01 2009-01-02 2009-01-03 2010-01-04 2010-01-05 2010-01-06