|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35425 idate('Z') ignores current time zone
Submitted: 2005-11-27 16:22 UTC Modified: 2005-11-29 21:25 UTC
From: tomas_matousek at hotmail dot com Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 5.1.0 OS: WinXP
Private report: No CVE-ID: None
 [2005-11-27 16:22 UTC] tomas_matousek at hotmail dot com
idate('Z') doesn't reflect zone settings by date_default_timezone_set(). That's wrong, isn't it?

Reproduce code:
$time = mktime(1,1,1,1,1,2005);
echo idate('Z', $time);

Expected result:

Actual result:
3600 // my system setting is +1 GMT


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-27 16:28 UTC]
Assigned to the author.
Can't reproduce it on Linux, though.
 [2005-11-29 21:25 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:25 2019 UTC