#46712 [Opn->Csd]: strftime : %p tag does "AM/PM" and not "am/pm"
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 23:16:33 +0000 |
| Subject: | #46712 [Opn->Csd]: strftime : %p tag does "AM/PM" and not "am/pm" | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1566@lists.php.net to get a copy of this message | ||
ID: 46712
Updated by: danbrown@php.net
Reported By: evaisse at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: ubuntu/linux
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2008-11-28 16:51:09] evaisse at gmail dot com
Description:
------------
doc say :
%p - either
am' or pm' according to the given time value, or the
corresponding strings for the current locale
Must be corrected said in the comments :
%p - either AM' or PM' according to the given time value, or the
corresponding strings for the current locale (note result is in
capitals)
%P - either am' or pm' according to the given time value, or the
corresponding strings for the current locale (note result is in lower
case)
Very vicious bug by the way.
Reproduce code:
---------------
print strftime('%p',time()); // time before 12, must print 'am'
Expected result:
----------------
am
Actual result:
--------------
AM
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46712&edit=1