rails-i18n icon indicating copy to clipboard operation
rails-i18n copied to clipboard

Date format in en-us.

Open Exoth opened this issue 11 years ago • 3 comments

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 avatar Sep 19 '13 13:09 Exoth

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.

Exoth avatar Sep 19 '13 13:09 Exoth

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?

toncid avatar Feb 17 '15 11:02 toncid

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

sshaw avatar Apr 14 '19 20:04 sshaw