#49857 [Opn->Fbk]: DST in Brazil will only begin in October 18th, not in 11th !!!

From: Date: Tue, 13 Oct 2009 07:34:45 +0000
Subject: #49857 [Opn->Fbk]: DST in Brazil will only begin in October 18th, not in 11th !!!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143515@lists.php.net to get a copy of this message
ID: 49857 Updated by: pajoye@php.net Reported By: heitor dot siller at gmail dot com -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: RHEL 5 PHP Version: 5.2.11 New Comment: Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-10-13 03:30:34] heitor dot siller at gmail dot com Description: ------------ DST in Brazil will only begin in October 18th, but PHP considered it has already started on October 11th. This is causing very significant problems in Brasilian web systems! DST in Brazil are weird, I mean, its rules changes every year. This year president Lula imposed it will begin every third October's sundays and will ends in the third February's sundays. Although now there is a general rule, there is still problems. For example: some Brazilian states just don't accept DST and they often win processes in justice to not follow DST. Other potential problem is there is 4 different time zones in Brazilian's huge territory (that is even bigger than continental USA), and "normally" only one has DST, who is "Brazil/East". To be honest, I can't see a simple solution for this bug, but what I'm sure is that a lot of people in Brazil will face a buggy week between October 11th and 18th! Reproduce code: --------------- Try to run <? $x = date("Y-m-d H:i:s"); exit($x); ?> in PHP an then compare to "SELECT localtime" in MySQL Expected result: ---------------- PHP result will show a date 1 hour ahead of MySQL's Actual result: -------------- PHP: 2009-10-13 01:27:37 MYSQL 2009-10-13 00:27:37 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49857&edit=1

« previous php.bugs (#143515) next »