ID:               37056
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mpirhala at genesispo dot sk
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: winxp, linux
 PHP Version:      5.1.2
 New Comment:

We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which
do
not suffer from DST.




Previous Comments:
------------------------------------------------------------------------

[2006-04-12 13:59:54] mpirhala at genesispo dot sk

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37056&edit=1

Reply via email to