#48977 [NEW]: US/Central != Etc/GMT-6
| From: | cpriest at warpmail dot net | Date: | Sun, 19 Jul 2009 19:40:55 +0000 |
| Subject: | #48977 [NEW]: US/Central != Etc/GMT-6 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139930@lists.php.net to get a copy of this message | ||
From: cpriest at warpmail dot net
Operating system: Vista 64-Bit
PHP version: 5.3.0
PHP Bug Type: Date/time related
Bug description: US/Central != Etc/GMT-6
Description:
------------
When initializing two new DateTime objects using equivalent
DateTimeZone()'s of US/Central and Etc/GMT-6, the result is incorrect
Reproduce code:
---------------
$objTime = new DateTime('now', new DateTimeZone('US/Central'));
echo $objTime->format('m/d/Y H:i:s T')."\r\n";
$objTime = new DateTime('now', new DateTimeZone('Etc/GMT-6'));
echo $objTime->format('m/d/Y H:i:s T')."\r\n";
Expected result:
----------------
The same timestamp on two lines (with different TimeZone specifiers)
Actual result:
--------------
Different timestamps.
--
Edit bug report at http://bugs.php.net/?id=48977&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48977&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48977&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48977&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=48977&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=48977&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48977&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48977&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48977&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48977&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48977&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48977&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48977&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48977&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48977&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48977&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48977&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48977&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48977&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48977&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48977&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48977&r=mysqlcfg