Open Bug 1843253 Opened 10 months ago Updated 3 months ago

incorrect date and time format in input fields

Categories

(Core :: Internationalization, defect, P3)

Firefox 102
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mihkel.tsako, Unassigned)

References

Details

Attachments

(1 file)

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.

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.

Component: Untriaged → Internationalization
Product: Firefox → Core

The severity field is not set for this bug.
:m_kato, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(m_kato)

It depends on HTML and lang attribute. So, mihkel.tsako , could you provide URL or sample HTML?

Flags: needinfo?(m_kato) → needinfo?(mihkel.tsako)
Attached file example.html

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.

Flags: needinfo?(mihkel.tsako)
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: