#35425 [Asn->Csd]: idate('Z') ignores current time zone

From: Date: Tue, 29 Nov 2005 20:25:42 +0000
Subject: #35425 [Asn->Csd]: idate('Z') ignores current time zone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89415@lists.php.net to get a copy of this message
ID: 35425 Updated by: iliaa@php.net Reported By: tomas_matousek at hotmail dot com -Status: Assigned +Status: Closed Bug Type: Date/time related Operating System: WinXP PHP Version: 5.1.0 Assigned To: derick New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-11-27 16:28:45] tony2001@php.net Assigned to the author. Can't reproduce it on Linux, though. ------------------------------------------------------------------------ [2005-11-27 16:22:52] tomas_matousek at hotmail dot com Description: ------------ idate('Z') doesn't reflect zone settings by date_default_timezone_set(). That's wrong, isn't it? Reproduce code: --------------- date_default_timezone_set("UTC"); $time = mktime(1,1,1,1,1,2005); echo idate('Z', $time); Expected result: ---------------- 0 Actual result: -------------- 3600 // my system setting is +1 GMT ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35425&edit=1

« previous php.bugs (#89415) next »