|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-09-09 20:01 UTC] dtajchreber@php.net
-Status: Open
+Status: Bogus
[2011-09-09 20:01 UTC] dtajchreber@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ Adding 7 days to the timestamp for 2011-11-05 increased the date by 6 days only. run sample code. Test script: --------------- /* It appears that the day function of the time stamp is falling behind . */ $ts = mktime(0,0,0,10,29,2011) + 7*86400 ; $mday1 = date('d',$ts); //OK $ts = mktime(0,0,0,10,29,2011) + 14*86400 ; $mday2 = date('d',$ts); //1 day behind $ts = mktime(0,0,0,10,29,2011) + 21*86400 ; $mday3 = date('d',$ts); // 1 day behind echo $mday1. ' ' . $mday2.' '. $mday3 ;