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
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: 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
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

Pull Requests

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: Sat Dec 21 15:01:29 2024 UTC