Closed Bug 1670227 Opened 4 years ago Closed 4 years ago

Windows time zone lookup code no longer necessary

Categories

(Calendar :: Internal Components, enhancement)

enhancement

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
86 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: neil, Assigned: neil)

References

Details

Attachments

(1 file, 1 obsolete file)

When guessing the time zone, the zone retrieved from Windows is looked up in a custom lookup file to be converted to a standard time zone. However, Lightning's time zone service can already look up Windows time zone names, so this is unnecessary. Additionally, Lightning only stores the canonical time zone name in preferences anyway. Also, there's still some old Windows XP time zone lookup code, which is now obsolete.

Attached patch Proposed patch (obsolete) β€” β€” Splinter Review
Assignee: nobody → neil
Attachment #9180664 - Flags: review?(philipp)
Status: NEW → ASSIGNED

I believe zones.json is generated by the timezone upgrade script, can you double check if running it would overwrite the custom changes you've made?

Flags: needinfo?(neil)

Comment on attachment 9180664 [details] [diff] [review]
Proposed patch

Would appreciate a response on the former comment, please feel free to re-request review when you have time.

Attachment #9180664 - Flags: review?(philipp)

My apologies for not responding earlier.

By my reading of the code, the timezone update script only ever merges in new aliases, so it should be fine, but I'd like to double-check with the last person who touched the script, in case they are more familiar with it.

Flags: needinfo?(neil) → needinfo?(geoff)

Yes, I think that's fine, we've added aliases in the same way before.

While we're here, can we please get rid of that archaic way of checking the OS is Windows (CalTimezoneService.js)?

Flags: needinfo?(geoff)
Attachment #9180664 - Attachment is obsolete: true
Attachment #9190575 - Flags: review?(philipp)
Attachment #9190575 - Flags: review?(philipp) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/1e1fdb344d12
Manual lookup of Windows NT time zone name is unnecessary. r=Fallen

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

Hope you don't mind me landing this before landing was requested. :-)

Target Milestone: --- → 86 Branch

test_alarmutils.js didn't like that. We're getting Z added to the end of iCal strings. My guess is the zone is now correctly being set to UTC instead of Africa/Abidjan like it used to be, but I can't see it in the log to confirm. Bug 1684485 will fix this problem, so I'm not inclined to do anything about it now.

Depends on: 1684485
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: