Closed Bug 1794029 Opened 2 years ago Closed 2 years ago

Use timezone definitions from ICU

Categories

(Calendar :: Internal Components, enhancement)

enhancement

Tracking

(thunderbird_esr102 wontfix)

RESOLVED FIXED
108 Branch
Tracking Status
thunderbird_esr102 --- wontfix

People

(Reporter: leftmostcat, Assigned: leftmostcat)

References

Details

Attachments

(1 file)

At present, we maintain our own database of timezone definitions generated by running a script on the IANA timezone database. This requires manual intervention on the release of a new ICU version, at present requires a very specific setup to run, and leaves out a number of valid timezones, causing issues for users.

The ICU library provides facilities for accessing definitions based on the IANA timezone database and is already included and updated in central. Use this as the basis for our timezone definitions instead of maintaining our own.

Status: NEW → ASSIGNED
Attachment #9298453 - Attachment description: Bug 1794029 - create ICU timezone database service. r=darktrojan → Bug 1794029 - create ICU timezone database service. r=#thunderbird-reviewers
Target Milestone: --- → 108 Branch

Please rebase, this had bitrotted.

Bitrot addressed.

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/2b430305eaf4
create ICU timezone database service. r=darktrojan,mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

This change is causing a ESLint failures in calendar/test/browser/timezones/browser_timezones.js:

TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:91:11 | Octal literals should not be used. (no-octal)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:101:11 | Octal literals should not be used. (no-octal)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:111:11 | Octal literals should not be used. (no-octal)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:121:11 | Octal literals should not be used. (no-octal)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:131:11 | Octal literals should not be used. (no-octal)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:141:11 | Octal literals should not be used. (no-octal)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:151:11 | Octal literals should not be used. (no-octal)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/test/browser/timezones/browser_timezones.js:161:11 | Octal literals should not be used. (no-octal)

Due to bug 1797759, Treeherder marked ESLint tests as successful/green even though there were errors present. Fix for these errors should be easy enough, don't use "00", just "0" as seen in lines 57-66 of the same file.

Status: RESOLVED → REOPENED
Flags: needinfo?(leftmostcat)
Resolution: FIXED → ---

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bf22a7963e7e
follow-up, fix linting errors exposed with the fix of bug 1797759. rs=eslint

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED

Took care of the linting.

Flags: needinfo?(leftmostcat)
Regressions: 1806836
Regressions: 1810361
Duplicate of this bug: 353381
See Also: → 1843007
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: