From: bernardo at datamex dot com dot br Operating system: Window,Linux,FreeBSD PHP version: Irrelevant Package: Date/time related Bug Type: Bug Bug description:Problems with BR Save time (BRST)
Description: ------------ I changed my server application before Freebsd with php 5.3.3 now Ubuntu with php 5.3.10. I noticed that there are differences between treatment dates in different timezones. Note that when BRST "America/Sao_Paulo" advances one hour. Test script: --------------- <?php error_reporting(E_ALL); $timezone = date_default_timezone_get(); $time = mktime(12,0,0,1,15,2013); $agoraAqui = date("d/m/Y H:i:s"); $antesAqui = date("d/m/Y H:i:s", $time); date_default_timezone_set('America/Bahia'); $agoraLa = date("d/m/Y H:i:s"); $antesLa = date("d/m/Y H:i:s", $time); echo "<table border=1> <tr> <td></td><td>NOW</td><td>In BRST ({$time})</td> </tr> <tr> <td>{$timezone}</td><td>{$agoraAqui}</td><td>{$antesAqui}</td> </tr> <tr> <td>America/Bahia</td><td>{$agoraLa}</td><td>{$antesLa}</td> </tr> </table> <br /> <a href='http://wwp.greenwichmeantime.com/time-zone/south-america/brazil/time-brazil/'>time-brazil</a> "; ?> Expected result: ---------------- NOW | In BRST (1358258400) America/Sao_Paulo | 01/03/2013 14:46:27 | 15/01/2013 12:00:00 America/Bahia | 01/03/2013 14:46:27 | 15/01/2013 11:00:00 Actual result: -------------- Correct in: - freebsd + php 5.3.3 - freebsd + php 5.3.6 - windows + php 5.3.8 NOW | In BRST (1358258400) America/Sao_Paulo | 01/03/2013 14:46:27 | 15/01/2013 12:00:00 America/Bahia | 01/03/2013 14:46:27 | 15/01/2013 11:00:00 Error in: - freebsd + php 5.3.10 - ubuntu + php 5.3.10 - windows + php 5.4.3 NOW | In BRST (1358258400) America/Sao_Paulo | 01/03/2013 14:46:27 | 15/01/2013 12:00:00 America/Bahia | 01/03/2013 14:46:27 | 15/01/2013 12:00:00 -- Edit bug report at https://bugs.php.net/bug.php?id=64332&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64332&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64332&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64332&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64332&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64332&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64332&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64332&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64332&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64332&r=support Expected behavior: https://bugs.php.net/fix.php?id=64332&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64332&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64332&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64332&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64332&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64332&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64332&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64332&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64332&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64332&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64332&r=mysqlcfg