php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57298 Apparently the php is not returnin my hour correctly ( gmt-3 )
Submitted: 2006-10-17 08:53 UTC Modified: 2006-10-17 13:09 UTC
From: ricardo dot maraschini at opservices dot com dot br Assigned: derick (profile)
Status: Closed Package: timezonedb (PECL)
PHP Version: 5.1.6 OS: Linux 2.6.16.18( Fedora Core 3 )
Private report: No CVE-ID: None
 [2006-10-17 08:53 UTC] ricardo dot maraschini at opservices dot com dot br
Description:
------------
I use the release 2006.11 of timezonedb on php 5.1.6. We are here at gmt-3( America/Sao_Paulo ) but the php is returning me gmt-2.
This problem begin on 15-Oct. The daylight saving here will begin on 05-Nov, but it was first previst to began in last 15-Oct.

Reproduce code:
---------------
print date_default_timezone_get();

= America/Sao_Paulo ( correct )

print date('O');
= -0200

I believe that the correct result is -0300.



Expected result:
----------------
<?
print date('O');
?>

-0300

Actual result:
--------------
<?
print date('O');
?>

-0200

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-17 13:09 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

It's in the new 2006.14 release now.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 09:01:25 2019 UTC