#27754 [Opn->Csd]: mktime() reports wrong time for day of change to daily savings time CET->CEST
| From: | iliaa@php.net | Date: | Mon, 29 Mar 2004 15:43:09 +0000 |
| Subject: | #27754 [Opn->Csd]: mktime() reports wrong time for day of change to daily savings time CET->CEST | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57031@lists.php.net to get a copy of this message | ||
ID: 27754
Updated by: iliaa@php.net
Reported By: martin at tradex dot sk
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: FreeBSD 4.9-RELEASE i386
PHP Version: 4.3.5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-03-29 10:28:28] martin at tradex dot sk
Description:
------------
mktime() reports wrong time in PHP version 4.3.5 under special
circumstances(4.3.4 works well). It reports a wrong negative unixtime
when requesting mktime() for March 28, 2004 = the day of CET/CEST
timezone change (2:00 AM -> 3:00 AM). The wrong time is reported in
mktime interval from (0, 0, 0, 03, 28, 2004); to (1, 59, 59, 03, 28,
2004);
Tested on: FreeBSD 4.9, PHP 4.3.5
Timezone: CET / CEST
Reproduce code:
---------------
echo mktime(0, 0, 0, 03, 28, 2004) . "\n" . mktime(1, 59, 59, 03, 28,
2004);
Expected result:
----------------
1080428400
1080435599
this result is the correct result from PHP 4.3.4
Actual result:
--------------
-7262
-3601
this is the wrong result from PHP 4.3.5
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27754&edit=1