Req #66157 [Asn]: Reduce number of date formats from 9 to 1
| From: | t at tcx dot de | Date: | Fri, 14 Mar 2014 15:21:54 +0000 |
| Subject: | Req #66157 [Asn]: Reduce number of date formats from 9 to 1 | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-18485@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66157&edit=1
ID: 66157
User updated by: t at tcx dot de
Reported by: t at tcx dot de
Summary: Reduce number of date formats from 9 to 1
Status: Assigned
Type: Feature/Change Request
Package: Website problem
PHP Version: Irrelevant
Assigned To: levim
Block user comment: N
Private report: N
New Comment:
Y-m-d is already the most used format on php.net when looking at the links provided on creation of
this bug.
Just convert the others to Y-m-d and you are done.
Previous Comments:
------------------------------------------------------------------------
[2014-03-14 15:18:21] t at tcx dot de
"Human readable dates will be displayed as 'd M Y'. Datetimes intended for tools will
use RFC 3339 (W3C is the same thing). Dates intended for tools (no timestamp information) will use
'Y-m-d'."
That again is three formats. On a website all displayed date information can be read by humans.
Y-m-d is perfectly readable by humans - at least me and probably the designers of https://www.python.org/ thought so. Y-m-d is defined in ISO 8601
and it is the most compact format of those that are not ambiguous. Straight forward. No RFCs with
their handful of formats, no W3C (they themselves don't use it strictly on their site), just
one ISO.
------------------------------------------------------------------------
[2014-03-14 15:07:59] levim@php.net
Human readable dates will be displayed as 'd M Y'. Datetimes intended for tools will use
RFC 3339 (W3C is the same thing). Dates intended for tools (no timestamp information) will use
'Y-m-d'.
I have committed some changes already and plan to work on this today during stretches where my code
is compiling.
------------------------------------------------------------------------
[2014-03-04 09:44:21] t at tcx dot de
http://www.python.org/ now uses Y-m-d.
In Gmail web interface I also see that more of my reply emails write something like:
"2014-03-04 2:58 GMT+01:00 Name <name@example.org>:" (Note, they miss the leading 0
for one digit hours and use GMT which is wrong, correct is UTC).
------------------------------------------------------------------------
[2014-03-04 04:27:22] levim@php.net
This many date formats in use bothers me as well. I'll look into pruning them a bit.
------------------------------------------------------------------------
[2013-11-23 18:10:16] bjori@php.net
(It thinks it is spam becomes there are so many links :))
Thanks for the report, you raise an excellent point!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66157
--
Edit this bug report at https://bugs.php.net/bug.php?id=66157&edit=1