-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EU to US times #1257
Comments
Is there actually a problem for US readers reading 24h times? I cannot speak for all europeans but we have and understand 12h clocks, too - just the AM/PM "needs" to be translated then. For reference: |
It isn't a question of whether US readers can or can't read them , but more a question of presenting the information to them in the way they expect to see it. And 24 hour is definitely stranger to US folks than 12 hour is to European folks. |
Can't we just do this in Javascript, if needed? |
Scanning for ISO formatted times and replacing them with localized representations should work if the times are not divided by tags. |
hmmm, maybe? :-D |
For me the JS code Do you get a fitting result for your locale? |
For me it returned 12 hour time, as my browser language was set to English (United States). Don't know if I ever chose that or it was just the default Firefox came with. After setting English (United Kingdom) I get 24 hour time. If Firefox uses English (United States) as the default, this is not optimal, because Europeans would by default see 12 hour time. |
We've got times of day in a LOT of copy, and often we have to maintain EU and US version, or 12 and 24 hour versions.
We could make a jinja2 / python function along the lines of
And then use times like
local(16:00)
and have it convert or not according to a variable in config. What do you think? Am I over thinking?The text was updated successfully, but these errors were encountered: