#39050 [Opn->Bgs]: Etc/GMT+/- x hours values are backwards

From: Date: Thu, 05 Oct 2006 14:34:47 +0000
Subject: #39050 [Opn->Bgs]: Etc/GMT+/- x hours values are backwards
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103144@lists.php.net to get a copy of this message
ID: 39050 Updated by: derick@php.net Reported By: duerra_NOT_THIS_ at pushitlive dot net -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Linux PHP Version: 5.1.6 New Comment: No, those are correct. However, you should not even be using those - they only exist in the timezone database for backward compatible reasons. Pick one of the Continent/City combinations. Previous Comments: ------------------------------------------------------------------------ [2006-10-05 14:28:38] duerra_NOT_THIS_ at pushitlive dot net Description: ------------ When using Etc/GMT related values with date_default_timezone_set(), the values are backwards of what they should be. Reproduce code: --------------- <?php date_default_timezone_set('Etc/GMT'); echo date('H:i').'<br />'; date_default_timezone_set('Etc/GMT-1'); echo date('H:i'); ?> Expected result: ---------------- 14:27 13:27 Actual result: -------------- 14:27 15:27 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39050&edit=1

« previous php.bugs (#103144) next »