-
Notifications
You must be signed in to change notification settings - Fork 974
Localization issue: US date format is confusing to everyone #4294
Comments
In Japanese it would be 2016年4月10日, for example. |
I'd case my vote for the last (X days…), and possibly with a |
this should be a super easy fix- just using toLocaleDateString History page also uses this- perhaps it can be pulled out to a helper class, like formatUtil.js? |
Agreed that this is confusing (I also read April, 10th). I'm with @jonathansampson with countdown to date. /cc @bradleyrichter what do you think? |
This USA difference is confusing but we have many US customers. So countdown in days is probably best. "Next contribution in 11 days." This also solves a deeper problem where we need to update the date because you were on vacation during the initial reported date. (closed computer) So in this case, when you start up again, it will just say "in 11 days". @bsclifton I think the format in about:history is fine as is given the above choices suggested by @Aeyoun. (and thanks for the detailed issue!) |
@ayumi acceptable quick fix if countdown requires too much work: 2016-09-28 (big-endian international standard date format, no localization required) |
@bradleyrichter thanks, I do generally enjoy that date format |
I like the countdown 😄 But if we don't use countdown, is there a reason we wouldn't want to show the date in the user's locale format? (ex: using https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString)? As long as we're updating the locale when user changes it using preferences and processing it correctly, we'll get the formatting 100% for free since it's a standard JS function |
Many users have incorrectly configured computers and don’t know how to change it. (At least here in Europe. When I buy hardware here in Norway, I often get Finish, French, or British locale by default and can change to Norwegian in Settings.) Devices are often localized to not only one market but many markets get the same pre-configured setup with a small instruction brief on how to configure it . You also have the problem of the German living in Spain doing business with Americans and FaceTimeing with his Chinese partner…. No one really know what date format that person excepts their computer to show them at any given time. Dates are hard. 😄 ISO date is supposed to be the solution! It has been recommended by W3C for use on the web ever since 2002 and they use it in all spec recommendations. All commerce and finance in EEA/EU is supposed to use ISO-8601. (Something about lowering barriers to trade and stuff.) Disclaimer: I really like ISO 8601 so I may be biased. |
- Add [moment.js](https://github.com/moment/moment/) - moment supports many [date localizations](http://momentjs.com/docs/#/i18n/) - to be added later Fix #4294 Auditors: @jkup @mrose17 Test Plan: 1. In Prefeences > Payments, see Status and look for the "Next contribution: in {n} days". 2. In Payment history, check that contribution dates are in ISO 8601 format (YYYY-MM-DD). 3. Also look near the bottom for "Next contribution :in {n} days".
- Add [moment.js](https://github.com/moment/moment/) which localizes time/date things Fix #4294 Auditors: @jkup @mrose17 Test Plan: 1. In Prefeences > Payments, see Status and look for the "Next contribution: in {n} days". 2. In Payment history, check that contribution dates are in ISO 8601 format (YYYY-MM-DD). 3. Also look near the bottom for "Next contribution :in {n} days". 4. Change Browser language in General then restart browser 5. Go to Payments, see Status and find localized "in {n} days string"
@Aeyoun thanks for the explanation- I think it's a great compromise 😄 |
“Next contribution: 10/4/2016.”
So I have to wait until April 10th? Wait, that is five months ago … .
Practically speaking everyone in the world uses a little-endian date format with day, month, followed by the year whereas the middle-endian [madness] is limited to the US.
To avoid any confusion and avoid the cost of actually having to localize it to every region, please choose one of the below formats:
The text was updated successfully, but these errors were encountered: