php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39249 DST Issue
Submitted: 2006-10-24 19:40 UTC Modified: 2006-10-27 18:49 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: julianoa at webcorensp dot org dot br Assigned:
Status: Closed Package: Date/time related
PHP Version: 5* OS: Linux - FreeBSD
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: julianoa at webcorensp dot org dot br
New email:
PHP Version: OS:

 

 [2006-10-24 19:40 UTC] julianoa at webcorensp dot org dot br
Description:
------------
Every year my DST settings change, and I need to reconfigure my zone file DST start and ending times in all my servers (BSD, Linux and Windows).
I make the changes correctly to turn DST on in Nov 5 (default was Oct 15), every linux system accepted that change (including Apache), but php date command returns my time with DST on.
This problem doesn?t occur in a Windows Server, in this machine PHP returns time correctly.

Reproduce code:
---------------
echo date("l, d  F  Y,  H:i - T - I")

returns DST turned on. (after Oct 15 and before Nov 5)

zdump zone file (Brazil/East)

Brazil/East  Sun Nov  5 02:59:59 2006 UTC = Sat Nov  4 23:59:59 2006 BRT isdst=0 gmtoff=-10800
Brazil/East  Sun Nov  5 03:00:00 2006 UTC = Sun Nov  5 01:00:00 2006 BRT isdst=1 gmtoff=-7200
Brazil/East  Sun Feb 25 01:59:59 2007 UTC = Sat Feb 24 23:59:59 2007 BRT isdst=1 gmtoff=-7200
Brazil/East  Sun Feb 25 02:00:00 2007 UTC = Sat Feb 24 23:00:00 2007 BRT isdst=0 gmtoff=-10800


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-24 21:13 UTC] derick@php.net
Install http://pecl.php.net/timezonedb which has all the latest definitions.
 [2006-10-25 21:00 UTC] julianoa at webcorensp dot org dot br
It worked on my linux box! I still need to compile it in my BSD. But I?d like to inform that timezonedb is poorly documented. If you use a debian box, it?s necessary to have php-dev pack installed and also create a symlink from /usr/include/php5 to /usr/include/php, otherwise it won?t compile. As soon as I install it on my BSD I give some more feedback, and then close de case.
 [2006-10-27 17:49 UTC] julianoa at webcorensp dot org dot br
I compiled timezonedb in my FreeBSD box, not different issues compilation was easy, and there?s no patches or symlinks neccessary to make compilation work.

But unfortunatelly it didn?t work, as you can see in the url:
www5.webcorensp.org.br/numero , DST is still on.

On a Debian everything works fine, it can be comproved in URL
www4.webcorensp.org.br/numero
 [2006-10-27 18:12 UTC] derick@php.net
This seems to be a FreeBSD only issue. I just released a new version of the timezonedb package (2006.14.1) that should address this problem.
 [2006-10-27 18:49 UTC] julianoa at webcorensp dot org dot br
After applying the new timezonedb version over the older one everything now works fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 15:01:31 2024 UTC