From:             roberto at spadim dot com dot br
Operating system: Linux
PHP version:      5.1.6
PHP Bug Type:     Date/time related
Bug description:  DST Not right

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


-- 
Edit bug report at http://bugs.php.net/?id=39203&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39203&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39203&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39203&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39203&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39203&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39203&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39203&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39203&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39203&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39203&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39203&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39203&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39203&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39203&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39203&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39203&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39203&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39203&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39203&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39203&r=mysqlcfg

Reply via email to