#46712 [NEW]: strftime : %p tag does "AM/PM" and not "am/pm"

From: Date: Fri, 28 Nov 2008 16:51:09 +0000
Subject: #46712 [NEW]: strftime : %p tag does "AM/PM" and not "am/pm"
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1557@lists.php.net to get a copy of this message
From: evaisse at gmail dot com Operating system: ubuntu/linux PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: strftime : %p tag does "AM/PM" and not "am/pm" 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 bug report at http://bugs.php.net/?id=46712&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46712&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46712&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46712&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46712&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46712&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46712&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46712&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46712&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46712&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46712&r=support Expected behavior: http://bugs.php.net/fix.php?id=46712&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46712&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46712&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46712&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46712&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46712&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46712&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46712&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46712&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46712&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46712&r=mysqlcfg

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