|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57868 DST on wrong day
Submitted: 2007-10-08 14:55 UTC Modified: 2007-10-11 15:04 UTC
From: george dot wright at infimatic dot com Assigned:
Status: Closed Package: timezonedb (PECL)
PHP Version: 5.2.0 OS: SuSE 10.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: george dot wright at infimatic dot com
New email:
PHP Version: OS:


 [2007-10-08 14:55 UTC] george dot wright at infimatic dot com
The DST transition for Eastern Brazil seems to be incorrect.

After installing the latest timezonedb package (2007.5) successfully, I still got the wrong DST output.

DST should begin 14-Oct-2007 at midnight according to

I tried 'Brazil/East', 'BRST' etc. but got the same result.

Reproduce code:


print date("Y-m-d H:i:s O", 1192244400);
print "<br>";
print date("Y-m-d H:i:s O", 1192330800);
print "<br>";
print date("Y-m-d H:i:s O", 1194058800);
print "<br>";
print date("Y-m-d H:i:s O", 1194145200);


Expected result:
// It should display:
2007-10-13 00:00:00 -0300
2007-10-14 01:00:00 -0200
2007-11-03 00:00:00 -0200
2007-11-04 00:00:00 -0200

Actual result:
// It does display:
2007-10-13 00:00:00 -0300
2007-10-14 00:00:00 -0300
2007-11-03 00:00:00 -0300
2007-11-04 01:00:00 -0200


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-11 15:04 UTC]
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at

I fixed this now, and released a new version (2007.8)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 20:01:31 2024 UTC