Closed Bug 1208806 Opened 9 years ago Closed 9 years ago

Migrate Statusbar and Lockscreen clocks to use mozIntl

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zbraniecki, Assigned: zbraniecki)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file)

System and Lockscreen clocks use custom code to remove dayperiod from the result time string after formatting. We recently started working on including this feature in Intl API and developed mozIntl API as a temporary shim. The version in mozIntl is better (it properly reacts to a bug in our automatic timezone handling), so let's switch to it.
Comment on attachment 8666437 [details] [gaia] zbraniecki:1208806-switch-clocks-to-mozintl > mozilla-b2g:master Tim, this patch moves System statusbar time_icon and Lockscreen time formatting to mozIntl.DateTimeFormat which is an extension of Intl API that incorporates changes that we are planning to add to Intl API rev 3. You can read about those API extensions here: * https://github.com/tc39/ecma402/issues/29 * https://github.com/tc39/ecma402/issues/30 My goal is to centralize those use cases to make it easier to maintain the code and later transition us to full Intl API once we finalize the spec and implement the changes in Gecko.
Attachment #8666437 - Flags: review?(timdream)
Tim, of course I only wanted to ask for the review of the second patch in this group. The first one is being reviewed by :stas in bug 1208698.
Depends on: 1208698
Assignee: nobody → gandalf
Whiteboard: [systemsfe]
Comment on attachment 8666437 [details] [gaia] zbraniecki:1208806-switch-clocks-to-mozintl > mozilla-b2g:master Trying a different reviewer to offload Tim a bit :)
Attachment #8666437 - Flags: review?(timdream) → review?(apastor)
Comment on attachment 8666437 [details] [gaia] zbraniecki:1208806-switch-clocks-to-mozintl > mozilla-b2g:master LGTM. Thanks!
Attachment #8666437 - Flags: review?(apastor) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: