Closed Bug 1228223 Opened 10 years ago Closed 7 years ago

(B2G 2.6) Alarm time on lockscreen is not localized

Categories

(Firefox OS Graveyard :: Gaia::System::Lockscreen, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.6?, b2g-v2.5 unaffected, b2g-master affected)

RESOLVED WONTFIX
blocking-b2g 2.6?
Tracking Status
b2g-v2.5 --- unaffected
b2g-master --- affected

People

(Reporter: u547545, Unassigned)

References

Details

(Keywords: l12y, Whiteboard: [mozfr-community])

Attachments

(2 files)

Attached image 2015-11-25-21-55-35.png
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0 Build ID: 20151030084423 Steps to reproduce: Tested with ZTE Open C (FR). Prerequisites: - The language and keyboard are set to "French", - The date and time of the phone are set to "24 hours" or "Default". 1) Open the Clock application, 2) Create a new alarm (in my example: 5:30), 3) Activate the newly created alarm, 4) Put the phone in standby, 5) Out of the standby mode, to go to the lock screen. Actual results: -> The time of the alarm, informed on the home screen, is not written in the selected format (12h) (In this example: 5:30 AM or 5:30 PM). Expected results: -> The alarm time should be displayed in the selected format (24h). (In this example: 5:30 or 17.30). (Problem already seen with earlier versions) _____________ OS Version: 2.6.0.0-prerelease Build Number: eng..20140806.064432 Platform Version: 45.0a1 Build Identifier: 20151126005517 Update Channel: nightly Git Commit Info: 2015-11-25 20:00:25 (4d59fbe7)
Whiteboard: [mozfr-community]
Attached image 2015-11-25-21-56-10.png
Looks like there lacks some logic in this function to check which format is currently set in Settings, then display the alarm with the right format: https://github.com/mozilla-b2g/gaia/pull/32955/files#diff-460a1c0f44fb12b2fbf9dd1d3be82a20R55
Blocks: 942837
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: (B2G 2.6) Time format incorrect on the lock screen → (B2G 2.6) When phone is set to use 24-hour time format, the alarm on lockscreen is still displayed using 12-hour format
It’s actually a bit more than that, even AM and PM must be localized, as they can be different for some locales [1]. Updating the bug title to reflect this. We should really do what we’re doing in other parts where we’re displaying time (statusbar, clock app, or right above on the lockscreen, for instance). [1] https://transvision.mozfr.org/string/?entity=shared/date/date.properties:time_am&repo=gaia
Summary: (B2G 2.6) When phone is set to use 24-hour time format, the alarm on lockscreen is still displayed using 12-hour format → (B2G 2.6) Alarm time on lockscreen is not localized
Component: Gaia → Gaia::System::Lockscreen
Keywords: l12y
blocking-b2g: --- → 2.6?
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: