php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22932 date() ->change from AM to PM, WHEN ?
Submitted: 2003-03-27 10:52 UTC Modified: 2003-03-27 23:34 UTC
From: thierry_bo@php.net Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.0 OS: win32
Private report: No CVE-ID: None
 [2003-03-27 10:52 UTC] thierry_bo@php.net
Well, I don't know if this a bug or a feature...

Do you see a reason for this :

all consumer products (watches...) displays time of the day with AM until 12:59 and PM after that (01:00 PM), but the date("a", timestamp) finction displays "am" until 11:59 and pm after that ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-27 11:23 UTC] rich at kastle dot com
FYI my wristwatch currently claims it's 12:24 PM - that's 24 minutes after Noon.

I think PHP's behavior is correct.
 [2003-03-27 13:13 UTC] sniper@php.net
As long as I've known, PM starts at 12:01 

 [2003-03-27 23:29 UTC] thierry_bo@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Well, sorry for this bug report, it appears that this is consumer products I use which have a bug.
 [2003-03-27 23:34 UTC] sniper@php.net
Not bug -> bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 12:01:32 2024 UTC