Closed Bug 1343768 Opened 8 years ago Closed 8 years ago

Library's dates doesn't use the operating system's date and time format

Categories

(Firefox :: Bookmarks & History, defect, P1)

52 Branch
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr45 --- unaffected
firefox52 - wontfix
firefox-esr52 --- wontfix
firefox53 - wontfix
firefox54 + wontfix
firefox55 + fixed

People

(Reporter: alwayschangingparadigm, Unassigned)

References

Details

(Keywords: regression, ux-consistency)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0 Build ID: 20170301030202 Steps to reproduce: 1. Change the time format on Windows to aaaa-MM-dd (Short date) 2. Open the library. 2. Select Views, Show columns and check "Added". Actual results: The date uses the mm/dd/aaaa format. Expected results: The date should be using the aaaa-mm-dd like Firefox 51.0.1.
Blocks: 1301655
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Component: Untriaged → Bookmarks & History
Ever confirmed: true
This will get fixed with bug 1339650 which I intend to land next week. mozIntl.DateTimeFormat will respect OS preferences.
Oh, but the Library date/time formatting uses C++ API. How hard would it be to port this view to JS?
Btw, it was my understanding we wanted to respect the app locale settings and not the OS ones?
> Nope, the Library views are in js Ah, then yes, bug 1339650 will give us an API that fixes it. > Btw, it was my understanding we wanted to respect the app locale settings and not the OS ones? App Language settings, yes. But we also want to respect OS regional preferences. So, we take the language from the app (user has Firefox in `fr`, we show date in `fr`), but if the user also has defined hour12 in their regional preferences in the OS, we should show hour12 hourCycle. That's what bug 1339650 is about.
Attached image Library screenshot β€”
The current date format looks like "3/8/2017, 11:59 PM". The previous date format in Firefox 51 looked like "2017-03-08-Wed 23:59", which respected my preferences in the Windows regional settings.
Correct, as I said, this will be fixed by bug 1339650 unless your OS and your Firefox use different locales (say, your OS is in 'en' and your Firefox is in 'de'). No need to report "me too" anymore. We know about the bug, the fix will hopefully land this week :)
[Tracking Requested - why for this release]: Regression @ Zibi Braniecki [:gandalf][:zibi] - Unfortunately the bug #bug 1339650 didn't fix this regression, as I'm still seeing only 12h AM/PM and month/day/year, instead of year-month-day (or at least day month year) and 24h on Windows 7 (64bit) [PL] with latest Nightly (64bit) [en-US], like it's in my system settings.
Severity: normal → major
Has Regression Range: --- → yes
Flags: needinfo?(gandalf)
OS: Unspecified → All
Hardware: Unspecified → All
it actually depends on bug 1354445 that makes use of bug 1339650
Depends on: 1354445
Track 54+/55+ as regression.
:Virtual - why are you adjusting the importance of this bug? Are you an owner or peer of the module?
Flags: needinfo?(gandalf) → needinfo?(Virtual)
Too late to fix this in 53. Looks like the main work for this is landing in 55 nightly but may not yet be finished.
I changed severity to "major", because it corresponds to "Major loss of function", which better describes what this regression bug is about.
Flags: needinfo?(Virtual)
It's not major, nothing critical breaks because of this, and while it's an horrible annoyance, it's unlikely to cause serious harm. We should fix it asap, and that's what we'll try to do. If it's impossible to fix it before 55, we'll take the hit, we shipped worse regressions in the last years, fwiw (not that it's a good justification by itself, just that it happens, we are humans, we make mistakes). The path forward is unclear atm, while I'd accept any sort of hack that reverts to the previous situation, I'm not prone to accept workarounds that introduce further changes to the date format. If anyone has code ideas to revert this without the need for backing out the whole localization work I'll be open to those, otherwise this is likely to be just fixed in 55 by bug 1354445.
Severity: major → normal
Priority: -- → P1
(as a side note, please, be respectful, any intolerable behavior will be reported to Bugzilla admins)
Summary: Library's Added tab doesn't use the operating system's date and time format → Library's dates doesn't use the operating system's date and time format
I believe this is now fixed with bug 1354445 landing. Please, reopen if needed.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
I'm assuming that the fix for this will be riding the trains.
Reopening because the issue can still be reproduced. Steps to reproduce: 0. Have operating system (Windows 8.1) in a language different from English (German, 24-hour format). 1. Launch en-US Nightly (20170412). 2. Open menu History > Show All History. 3. Add the Most Recent Visit column. Actual result: en-US date and time stamps (in 12-hour format) like 3/5/2017, 5:05PM Expected result: 05.03.2017 17:05
Status: RESOLVED → REOPENED
Flags: needinfo?(gandalf)
Resolution: FIXED → ---
(PS: you can use a localized German Nightly, :flod let me know we now have nightly for almost all locales)
Thank you for the link with the explanation in bug 1354445 comment 18.
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Flags: needinfo?(gandalf)
Resolution: --- → FIXED
(In reply to Marco Bonardo [::mak] from comment #17) > It's not major But even Zibi Braniecki [:gandalf][:zibi] by himself changed duplicate bug to "major" severity (after bug #1354339 comment #33), but now we have P1 now, so it's also all good. (In reply to Marco Bonardo [::mak] from comment #17) > The path forward is unclear atm, while I'd accept any sort of hack that > reverts to the previous situation, I'm not prone to accept workarounds that > introduce further changes to the date format. > > If anyone has code ideas to revert this without the need for backing out the > whole localization work I'll be open to those, otherwise this is likely to > be just fixed in 55 by bug 1354445. We can also swap to using logical International Standard ISO 8601 for everyone, so yyyy-mm-dd hh:mm:ss (24h), but USA probably won't be happy about it and other won't probably notice this. ;) I can still confirm this issue, Firefox still not respecting the operating system hour and date format, like other software. Is still MM/DD/YYYY 12h AM/PM, but should be yyyy-mm-dd 24h. Also we shouldn't be using the long date (with names of day of the week and names of the month), just the short date (only with digits), so there won't be any problems for mixing localization etc. with it and problem will be solved.
> I can still confirm this issue, > Firefox still not respecting the operating system hour and date format, like other software. > Is still MM/DD/YYYY 12h AM/PM, but should be yyyy-mm-dd 24h. What is your OS, what is your browser locale, what is your OS locale and what is your user os locale? > Also we shouldn't be using the long date (with names of day of the week and names of the month), > just the short date (only with digits), > so there won't be any problems for mixing localization etc. with it and problem will be solved. This would not solve the problem. The variety of localization formats, numerical systems and directionalities is not solvable with an ISO date time format.
Depends on: 1383463
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: