Bug #64332 [Com]: Problems with BR Save time (BRST)
Edit report at https://bugs.php.net/bug.php?id=64332&edit=1
ID: 64332
Comment by: cmbecker69 at gmx dot de
Reported by: bernardo at datamex dot com dot br
Summary: Problems with BR Save time (BRST)
Status: Open
Type: Bug
Package: Date/time related
Operating System: Window,Linux,FreeBSD
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
If I'm not mistaken the "actual results" are correct, and the
"expected results" are wrong. At least according to Wikipedia[1]
America/Sao_Paulo and America/Bahia have the same offset to UTC
and identical DST offset.
If so, this is not a bug (but rather an older bug was fixed).
[1] <http://en.wikipedia.org/wiki/Bras%C3%ADlia_Summer_Time>
Previous Comments:
------------------------------------------------------------------------
[2013-03-01 17:59:17] bernardo at datamex dot com dot br
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 this bug report at https://bugs.php.net/bug.php?id=64332&edit=1
Thread (4 messages)