New issue
Advanced search Search tips

Issue 737901 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

<input type=time> uses 12h format with English Chrome locale on German Windows

Reported by adr...@planetcoding.net, Jun 29 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

Example URL:
https://codepen.io/anon/pen/QgaPVm

Steps to reproduce the problem:
1. Have a system locale that uses the 24h time format
2. Have the en_US locale set in Chrome
3. Go to any site with <input type=time>

What is the expected behavior?
The time field should use 24h format

What went wrong?
The time field uses 12h AM/PM format

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 60.0.3112.40  Channel: beta
OS Version: Windows 7
Flash Version: Shockwave Flash 26.0 r0

There are many users who prefer not having localized software since the English language version is usually better than any translation (especially when it comes to technical terms). However, for things like date/time formatting (and any other culture/locale/region-specific formatting) the browser should do what pretty much any other application does and use the system settings OR provide separate settings for the browser's UI language and the locale used for formatting etc. (defaulting to the system settings)
 

Comment 1 by e...@chromium.org, Jun 29 2017

Components: -Blink Blink>Forms>Time
Status: Untriaged (was: Unconfirmed)
Confirmed on stable. Over to Forms team for triage.

Comment 2 by tkent@chromium.org, Jun 29 2017

Owner: tkent@chromium.org
Status: WontFix (was: Untriaged)
At this moment, this is by design. Date/time input types refer to browser UI locale.  We have a plan to switch to page's locale.


Page locale? As in something set by the page? Please reconsider. I do use websites in different languages - German and English to be exact - and it would be VERY bad/confusing UX if I sometimes had 12h input fields and sometimes 24h, even though both sites use the exact same HTML5 element!

IF you take Windows for example, there is exactly one place where the hour format is set - and *all* other programs use it, no matter which language they are set to etc.

Sign in to add a comment