rails-i18n
rails-i18n copied to clipboard
Date format in en-us.
At the moment en-us.yml
contains this:
formats:
default: ! '%m-%d-%Y'
But http://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_States says this:
"The most commonly used separator in the all-numeric form is the slash (/), although the hyphen (-) is also common."
And I think that the most popular date formatting should be used in rails-i18n, so we should use /
instead of -
.
The same goes for en-gb.yml
, en-ca.yml
, en-nz.yml
, and en-au.yml
. There are -
, but /
is the most popular separator.
Not to mention timezone in the default date/time format (e.g. default: ! '%a, %d %b %Y %H:%M:%S %z'
). Not sure what the logic behind default format is, but it's definitely not human-readable.
Thoughts?
Outside of applications that use this library its default date format has never been seen displayed in the US anywhere ever (this applies to the short format as well 14 Apr 08:46 PM
).
Instead of Sun, 14 Apr 2019 08:45:34 PM UTC
default should be 4/14/19 8:45 PM
.
Any reason to not change the default? I'll gladly submit a PR to do so. Every time I use this library I end up changing this. Though this will make the US default differ from what I've seen as the default for most time formats (which seem questionable as well 😬).