php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
1 + 46 = ?
Subscribe to this entry?

 
 [2007-10-08 14:55 UTC] george dot wright at infimatic dot com
Description:
------------
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 http://www.timeanddate.com

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

Reproduce code:
---------------
<?php

date_default_timezone_set('America/Sao_Paulo');

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

I fixed this now, and released a new version (2007.8)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC