incorrect date and time format in input fields
Categories
(Core :: Internationalization, defect, P3)
Tracking
()
People
(Reporter: mihkel.tsako, Unassigned)
References
Details
Attachments
(1 file)
174 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
<input type="time"> tag uses 12h format instead of 24h as expected.
<input type="date"> tag uses "MM/DD/YYYY" format instead of "YYYY-MM-DD" as expected.
OS: windows 10
OS-language: English (US) - cannot be changed (*)
OS-date-format: 2023-07-13
OS-time-format: 20:00 (ie. 24h format)
Browser-language: English (US) - cannot be changed (*)
Tried changing the existing "intl.regional_prefs.use_os_locales" option via "about:config" (with just-in-case browser restarts) - but it did not have any effect.
*) i am highly technical user and therefore using OS/browser in my native language is strictly impossible (cannot google any encountered specifics based on extremely "unusual" language).
PS. found two reports in similar vein, but thous went nowhere on topic and then died: #1734776 and #1705310
Actual results:
User interface uses 12h time format and "MM/DD/YYYY" format for dates.
This bug makes it difficult to use FF in support and development role.
Expected results:
Browser respects date and time format of OS or provides an override (for both time and date separately).
NOTE(!): all of this works correctly in all other major browsers i have to support (Chrome/Edge) out-of-the-box - making FF an unfortunate standout.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Internationalization' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:m_kato, could you have a look please?
For more information, please visit BugBot documentation.
Comment 3•2 years ago
|
||
It depends on HTML and lang attribute. So, mihkel.tsako , could you provide URL or sample HTML?
Reporter | ||
Comment 4•2 years ago
|
||
Iirc. saw somewhere on MDN pages that firefox essentially ignores the lang attribute for built in widgets (with the only exception for html tag).
Either way - i think the browser should respect the OS settings (and ignore lang attribute) like every other browser does.
Updated•1 years ago
|
Description
•