svenfuchs / rails-i18n

Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff
http://rails-i18n.org
MIT License
3.97k stars 2.77k forks source link

Date format in en-us. #377

Open Exoth opened 11 years ago

Exoth commented 11 years ago

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 -.

Exoth commented 11 years ago

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.

toncid commented 9 years ago

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?

sshaw commented 5 years ago

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 😬).