Doc #63662 [Asn->Csd]: Strftime documentation for %z & %Z is not (necessarily?) correct.

From: Date: Mon, 03 Dec 2012 01:57:51 +0000
Subject: Doc #63662 [Asn->Csd]: Strftime documentation for %z & %Z is not (necessarily?) correct.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9244@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63662&edit=1 ID: 63662 Updated by: aharvey@php.net Reported by: zyzzyvette at gmail dot com Summary: Strftime documentation for %z & %Z is not (necessarily?) correct. -Status: Assigned +Status: Closed Type: Documentation Problem Package: Date/time related Operating System: Win7 PHP Version: Irrelevant Assigned To: aharvey Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2012-12-03 01:57:30] 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:35:18] aharvey@php.net Ah, Windows. Every time you need to guarantee an OS will get part of a spec wrong, there you are. ------------------------------------------------------------------------ [2012-11-30 22:55:55] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63662&edit=1

« previous php.doc.bugs (#9244) next »