#28447 closed enhancement (fixed)
Add ISO's YYYY-MM-DD date format to general settings
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Date/Time | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
The ISO's 8601 specification states that digitized dates should be specified in most to least significant time period, separated by hyphens. YYYY-MM-DD is the recommended format. The closest default we have currently is YYYY/MM/DD, but I'd like to see this international standard represented in the default list.
Wikipedia's page (accessed 2014-06-03) has more information — see the third bullet of General Principles. Here is the ISO's 8601 FAQ page.
This patch adds this standard format to the default array of date formats.
Attachments (3)
Change History (15)
#3
@
11 years ago
28447.diff looks good to me. +1 for commit.
#4
@
11 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 28820:
#5
@
11 years ago
Can we move this up to be next to the Y/m/d option? I also feel like this somehow tips into being too heavy - not sure if another option could be eliminated.
#7
follow-up:
↓ 9
@
11 years ago
If we are including the "Y-m-d" format, do we remove the Y/m/d format?
ALso we can replace the "m/d/Y" and "d/m/Y" with "m-d-Y" and "d-m-Y". This will go well with the "Decisions, not options" philosophy.
This ticket was mentioned in IRC in #wordpress-dev by gauravmittal_. View the logs.
11 years ago
#9
in reply to:
↑ 7
@
11 years ago
Replying to gauravmittal1995:
If we are including the "Y-m-d" format, do we remove the Y/m/d format?
ALso we can replace the "m/d/Y" and "d/m/Y" with "m-d-Y" and "d-m-Y". This will go well with the "Decisions, not options" philosophy.
m/d/Y
appears to be a common format in the United States. We could probably replace Y/m/d
with Y-m-d
though. For reference: http://en.wikipedia.org/wiki/Date_format_by_country#Listing.
@
11 years ago
According to he more popular choices (refer: http://en.wikipedia.org/wiki/Date_format_by_country#Listing )
#10
@
11 years ago
28447(2).patch looks good to me.
According to the listing above, Y-m-d
is definitely more popular than Y/m/d
. Translation teams can still set their own preferred format in language files by translating the default format, F j, Y
.
Attached patch.
First time patcher! ;-)