Closed Bug 1206306 Opened 9 years ago Closed 9 years ago

Migrate remaining mozL10n.DateTimeFormat's in Communications to Intl API

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zbraniecki, Assigned: zbraniecki)

References

Details

Attachments

(1 file)

We still have a few uses of mozL10n.DateTimeFormat in Communications code that should use Intl API.
Component: Gaia → Gaia::Contacts
Comment on attachment 8663216 [details] [gaia] zbraniecki:1206306-migrate-communications-to-intl-api > mozilla-b2g:master Borja, can you review this pls?
Attachment #8663216 - Flags: review?(borja.bugzilla)
Comment on attachment 8663216 [details] [gaia] zbraniecki:1206306-migrate-communications-to-intl-api > mozilla-b2g:master Forwarding this to Francisco due to I'll be on PTO the following days. Thanks!
Attachment #8663216 - Flags: review?(borja.bugzilla) → review?(francisco)
Comment on attachment 8663216 [details] [gaia] zbraniecki:1206306-migrate-communications-to-intl-api > mozilla-b2g:master This need also review from a dialer peer
Flags: needinfo?(drs)
Comment on attachment 8663216 [details] [gaia] zbraniecki:1206306-migrate-communications-to-intl-api > mozilla-b2g:master sure :)
Attachment #8663216 - Flags: review?(drs)
Comment on attachment 8663216 [details] [gaia] zbraniecki:1206306-migrate-communications-to-intl-api > mozilla-b2g:master Looks good. I reviewed both the Dialer and Contacts parts, but I'm only qualified to review the Dialer parts. I left one nit in the Contacts section.
Flags: needinfo?(drs)
Attachment #8663216 - Flags: review?(drs) → review+
Assignee: nobody → gandalf
Comment on attachment 8663216 [details] [gaia] zbraniecki:1206306-migrate-communications-to-intl-api > mozilla-b2g:master Contacts part lgtm. Please fix the unit test errors before landing.
Attachment #8663216 - Flags: review?(francisco) → review+
Ok. I fixed the tests. The reason they didn't work was because of timezones. I forced time comparisons to be in UTC and string comparisons to be local to the timezone in which the tests are run. It, as a side effect, fixed a bug which prevented people in US timezones from completing facebook connector tests :)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 1210466
Depends on: 1228056
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: