|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-19 21:35 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 22:00:01 2025 UTC |
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.