From:             rcronin at gmail dot com
Operating system: CentOS 4
PHP version:      5.1.0RC1
PHP Bug Type:     Unknown/Other Function
Bug description:  Etc/GMT+/- timezones display incorrect time with 
date_default_timezone_set

Description:
------------
All the Etc/GMT+/- timezones display incorrect times. Example, when
Asia/Tokyo is entered as the time zone the correc time is  displayed,
Tokyo is GMT+9. When Etc/GMT+9 is entered for the time zone the time is
incorrect. Output example:

GMT: 10/03/05 02:28 AM
GMT+9 (Asia/Tokyo): 10/03/05 11:28 AM (correct)
GMT+9 (Etc/GMT+9): 10/02/05 05:28 PM

The same occures for all the Etc timezone inputs except the GMT+0 zones.

I am running CentOS 4 with PHP5.1.0RC1. date.timezone is set to Etc/UTC,
as is the server. Server clock is kept in UTC.

Reproduce code:
---------------
http://www.xotion.com/settings/

Expected result:
----------------
Time output is correct for specified time zone.

Actual result:
--------------
Time output is correct only for non-Etc time zones and
GMT+0/GMT-0/UTC/Universal.

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

Reply via email to