php.net |  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
Description:
------------
---
From manual page: http://www.php.net/function.strftime#refsect1-function.strftime-
parameters
---

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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-03 01:35 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2012-12-03 01:35 UTC] aharvey@php.net
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] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=328617
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?)
correct.).
 [2012-12-03 01:57 UTC] aharvey@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-12-03 01:57 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC