#39249 [WFx]: DST Issue

From: Date: Wed, 25 Oct 2006 21:00:24 +0000
Subject: #39249 [WFx]: DST Issue
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103994@lists.php.net to get a copy of this message
 ID:               39249
 User updated by:  julianoa at webcorensp dot org dot br
 Reported By:      julianoa at webcorensp dot org dot br
 Status:           Wont fix
 Bug Type:         Date/time related
 Operating System: Linux - FreeBSD
 PHP Version:      5*
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2006-10-24 21:13:11] derick@php.net

Install http://pecl.php.net/timezonedb which has all
the latest
definitions.

------------------------------------------------------------------------

[2006-10-24 19:40:27] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39249&edit=1


Thread (1 message)

  • julianoa at webcorensp dot org dot br
  • Unknown Message
    • julianoa at webcorensp dot org dot br
« previous php.bugs (#103994) next »