|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63662 Strftime documentation for %z & %Z is not (necessarily?) correct.
Submitted: 2012-11-30 22:55 UTC Modified: 2012-12-03 01:57 UTC
From: zyzzyvette at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS: Win7
Private report: No CVE-ID: None
 [2012-11-30 22:55 UTC] zyzzyvette at gmail dot com
From manual page:

Documentation says that %z returns either the abbreviation (e.g., PST) or the 
offset (-0800), and that %Z will return the other one. But %z and %Z are both 
giving me the same result, which is neither the abbreviation nor the offset but 
the full timezone name ('Pacific Standard Time'). There are mentions of similar 
problems in the comments, but the documentation hasn't been corrected.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-03 01:35 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2012-12-03 01:35 UTC]
Ah, Windows. Every time you need to guarantee an OS will get part of a spec wrong, there you are.
 [2012-12-03 01:57 UTC]
Automatic comment from SVN on behalf of aharvey
Log: Update the documentation for the %z and %Z strftime() modifiers to reflect how
C99 specifies them, and describe how Windows misinteprets them.

Also add a <literal /> to the Solaris warning, since there was one missing and
I was already in there.

Fixes doc bug #63662 (Strftime documentation for %z & %Z is not (necessarily?)
 [2012-12-03 01:57 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2012-12-03 01:57 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 17:01:32 2024 UTC