php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39203 DST Not right
Submitted: 2006-10-20 04:51 UTC Modified: 2006-10-20 07:09 UTC
From: roberto at spadim dot com dot br Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: roberto at spadim dot com dot br
New email:
PHP Version: OS:

 

 [2006-10-20 04:51 UTC] roberto at spadim dot com dot br
Description:
------------
In brazil DST changed in 2006
it could happen on 1 oct
but will happen on 25 nov

on linux i can change timezone DST using ZIC and compiling new timezone databases

but in php it don't occur

zic file can be found at:
www.spadim.com.br/data.zic

Reproduce code:
---------------
on linux:
# date
Fri Oct 20 01:49:27 BRT 2006
# data -u
Fri Oct 20 04:49:36 UTC 2006

on php:
<?php
    echo date('Y-m-d H:i:s T')."\n".gmdate('Y-m-d H:i:s T')."\n";
?>

2006-10-20 02:51:05 BRST
2006-10-20 04:51:05 GMT


Expected result:
----------------
on linux:
# date
Fri Oct 20 01:49:27 BRT 2006
# data -u
Fri Oct 20 04:49:36 UTC 2006

on php:
<?php
    echo date('Y-m-d H:i:s T')."\n".gmdate('Y-m-d H:i:s T')."\n";
?>

2006-10-20 01:51:05 BRST
2006-10-20 04:51:05 GMT


Actual result:
--------------
on linux:
# date
Fri Oct 20 01:49:27 BRT 2006
# data -u
Fri Oct 20 04:49:36 UTC 2006

on php:
<?php
    echo date('Y-m-d H:i:s T')."\n".gmdate('Y-m-d H:i:s T')."\n";
?>

2006-10-20 02:51:05 BRST
2006-10-20 04:51:05 GMT


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-20 07:09 UTC] derick@php.net
You can update the database in PHP as well, with: http://pecl.php.net/timezonedb
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 18 19:00:03 2025 UTC