#46589 [Opn->Fbk]: am/pm issue
| From: | jani@php.net | Date: | Mon, 17 Nov 2008 09:40:33 +0000 |
| Subject: | #46589 [Opn->Fbk]: am/pm issue | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131016@lists.php.net to get a copy of this message | ||
ID: 46589
Updated by: jani@php.net
Reported By: micah_blu at bluprintsmedia dot net
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
Well, if you run in before noon you'll get am. Check your server time
using 24h format instead of the braindead american am/pm crap.
Previous Comments:
------------------------------------------------------------------------
[2008-11-17 05:28:48] micah_blu at bluprintsmedia dot net
Description:
------------
date() function returns wrong am/pm, usually always outputs am instead
of pm
Reproduce code:
---------------
echo date("Y-m-d h:i a");
Expected result:
----------------
//outputs:
2008-11-16 9:26 pm
Actual result:
--------------
//outputs:
2008-11-16 9:26 am
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46589&edit=1