php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22018 daylight savings time parameter works wrong
Submitted: 2003-02-02 15:27 UTC Modified: 2003-02-09 15:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: k.schroeder@php.net Assigned: k.schroeder (profile)
Status: Closed Package: Date/time related
PHP Version: 4CVS-2003-02-02 (stable) OS: Windows 2000 Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: k.schroeder@php.net
New email:
PHP Version: OS:

 

 [2003-02-02 15:27 UTC] k.schroeder@php.net
ext/standard/tests/time/003.phpt fails on W2k server:

diff:
008- 2000-05-29 13:00:00
008+ 2000-05-29 12:00:00
009- 2000-05-29 12:00:00
009+ 2000-05-29 11:00:00
014- 2000-04-29 13:00:00
014+ 2000-04-29 12:00:00
015- 2000-04-29 12:00:00
015+ 2000-04-29 11:00:00

coresponding lines:
echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,0))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,0))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,1))."\n";

this lines produce the expected result:
echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,-1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,-1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,0))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,-1))."\n";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-05 16:15 UTC] sniper@php.net
I suppose you meant to assign this to yourself..

 [2003-02-09 15:22 UTC] k.schroeder@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 17:01:26 2025 UTC