Closed Bug 1773303 Opened 3 years ago Closed 3 years ago

Calendar exceptions related to timezones causing Thunderbird mail to be fully broken

Categories

(Calendar :: General, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1760805

People

(Reporter: KaiE, Unassigned)

Details

(Keywords: regression)

Use Thunderbird 102 beta.

Use parameter -P and create a fresh profile.
Add an imap email account.
You see the folder pane on the left.
Quit Thunderbird.

Start Thunderbird again with the same profile.

Bug: Empty window, no folder pane on the left is shown.

The issue is related to system timezone. I'm on Linux, and my /etc/timezone file is set to: CET

We fail in CalTimezoneService.jsm and calUtils.jsm - it says it uses a system determined timezone CET, but then it cannot find that zone (probably because zones.jsm doesn't have it), and then complains that zone is null Ical.jsm convertToZone, which causes several exceptions in our code.

I also found that it works fine in an older Thunderbird profile, which I see contains a non-default pref value calendar.timezone.local which is set to Europe/Berlin for me. I'm very certain that I have never manually set that pref value, because it is a separate profile in a VM that never has had any calendar set up.

In short:

Current calendar code doesn't work on fresh profiles if the system timezone is a value like CET which isn't found in the zones.jsm file

Some older calendar code most likely automatically set the calendar.timezone.local pref which hides the problem with existing profiles.

Flags: needinfo?(lasana)
Product: Thunderbird → Calendar
Flags: needinfo?(leftmostcat)
Summary: No mail folders shown with fresh profile on second start → Calendar exceptions causing Thunderbird mail to be fully broken
Summary: Calendar exceptions causing Thunderbird mail to be fully broken → Calendar exceptions related to timezones causing Thunderbird mail to be fully broken

Using TB 91 these steps still work (on the same system that has timezone CET), and I automatically get the calendar.timezone.local pref with the good value.

I'm guessing that in 102 the code that calls Services.prefs.setStringPref("calendar.timezone.local", ...) in CalTimezoneService.jsm is no longer reached - but it seems that code is necessary to setup a proper timezone environment for thunderbird.

Using config editor, manually adding a calendar.timezone.local string entry with value Europe/Berlin (and restarting) fixes that profile.

I think this is bug 1760805.

agreed, duplicate.

I'll leave this for Lasana and Sean to resolve as duplicate, because they aren't yet cc'ed on the other bug.

I'm not familiar with this part of the code but Sean has been looking into timezone issues recently. If this is a duplicate, then let's close.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(leftmostcat)
Flags: needinfo?(lasana)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.