Closed Bug 1217305 Opened 9 years ago Closed 7 years ago

Some city names in tz.json do not match system tzdata

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: freesamael, Unassigned)

References

Details

Attachments

(1 file)

Attached file tzdata-names.txt
When user picks a timezone in Settings, gaia composes the timezone name with region/city defined in tz.json [1]. The system (gonk), however, inherently relay on /system/usr/share/zoneinfo/tzdata from AOSP [2]. Hence the composed timezone name has to match one defined in tzdata, otherwise the timezone is not recognized and will fall back to UTC time.

Some examples are "São_Tomé", "N'djamena", "Chișinău", etc.

I've extract the name list of B2G kitkat (which actually comes from IANA tzdata2013h [3]). We should verify tz.json to ensure it matches the names used in tzname-names.txt I attached.

[1] https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/tz.json
[2] http://androidxref.com/5.1.1_r6/xref/bionic/libc/zoneinfo/tzdata (binary)
[3] ftp://ftp.iana.org/tz/releases/tzcode2013h.tar.gz
:tedders said he's planning to switch us over to use ICU timezones, but I can't find the bug in which he said that.

Ted, what's you plan here?
Flags: needinfo?(tclancy)
(In reply to Zibi Braniecki [:gandalf][:zibi] from comment #1)
> :tedders said he's planning to switch us over to use ICU timezones, but I
> can't find the bug in which he said that.
> 
> Ted, what's you plan here?

I believe you're referring bug 1201254. I've taken a quick look, the Olson timezone name mapping inside the file looks good.
Flags: needinfo?(ted.clancy)
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

Created:
Updated:
Size: