#34147 [Sus]: Timezone problem

From: Date: Tue, 30 Aug 2005 07:16:50 +0000
Subject: #34147 [Sus]: Timezone problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84163@lists.php.net to get a copy of this message
ID: 34147 Updated by: derick@php.net Reported By: joerg dot klein at ifsam dot lu Status: Suspended Bug Type: Date/time related Operating System: win2000 PHP Version: 5.1.0b3 New Comment: @studio at peptolab dot com: That's because the timezone abbreviations are ambigious. EST is both America/New_York and Australia/Melbourne. The magic method only sees the EST, so it needs to make an assumption. Set the config param in php.ini to "America/Melbourne" and all will be well. Previous Comments: ------------------------------------------------------------------------ [2005-08-28 13:58:39] studio at peptolab dot com I'm getting the same behaviour in RH FC4 - I created an RPM of 5.1.0RC1 and installed that - despite being in the Australia/ Melbourne timezone, I'm automatically assumed to be America/ New_York by PHP. It seems the 'magic' method isn't correctly picking up my OS settings. ------------------------------------------------------------------------ [2005-08-19 12:54:56] derick@php.net @pash_ka at fonbet dot info: What should we set it to by default? ------------------------------------------------------------------------ [2005-08-18 15:58:37] pash_ka at fonbet dot info Please, add "date.timezone" setting to php.ini-dist and php.ini-recomended in Windows distribution, since it's very important to all peoples performing updates to PHP 5.1 not to forget set this value properly. ------------------------------------------------------------------------ [2005-08-16 14:00:20] derick@php.net We've new date/time support that doesn't rely on the OS. If you can point us how to retrieve the current timezone abbreviation on Windows with threadsafe code, we're happy to add it. ------------------------------------------------------------------------ [2005-08-16 13:47:09] joerg dot klein at ifsam dot lu This behaviour occurs the first time in 5.1.0b3. The time was always displayed correct in any previous PHP version! So why should the behaviour change in the latest beta version? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34147 -- Edit this bug report at http://bugs.php.net/?id=34147&edit=1

« previous php.bugs (#84163) next »