|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-12 14:11 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 19:00:01 2025 UTC |
Description: ------------ I make day's timestamps adding 1 day in seconds (86400s) to previous timestamp. I got strange result with 03/26/2006 and 03/27/2006. (tested on winxp and debian linux) Reproduce code: --------------- ## 26.03.2006 00:00:00 $timestamp = 1143327600; print date ("d.m.Y H:i:s", $timestamp)."<br>"; ## add 1 day in seconds (86400) $timestamp += 24 * 60 * 60; ## should be 27.03.2006 00:00:00 ## result is 27.03.2006 01:00:00 print date ("d.m.Y H:i:s", $timestamp)."<br>"; Expected result: ---------------- 26.03.2006 00:00:00 27.03.2006 00:00:00 Actual result: -------------- 26.03.2006 00:00:00 27.03.2006 01:00:00