Closed Bug 1921658 Opened 2 years ago Closed 2 years ago

calender shows wrong day names in header line (first day of week is forced to sunday and sunday is shown for monday column)

Categories

(Calendar :: Calendar Frontend, defect)

Thunderbird 132
defect

Tracking

(thunderbird_esr128 unaffected, thunderbird132+ wontfix, thunderbird133 verified)

VERIFIED FIXED
133 Branch
Tracking Status
thunderbird_esr128 --- unaffected
thunderbird132 + wontfix
thunderbird133 --- verified

People

(Reporter: hlein, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 external file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0

Steps to reproduce:

TB daily 132.0a1
Build-ID 20240928134218

show calendar

Actual results:

Either the days in the header are shifted
or the setting "first day of week" it starts with Sunday.

Both problems appear, and I have not found a rule which one.

This is still ok in TB 131 betas and earlier versions of daily 132.0a1

Expected results:

correct handling of the settings

Oh yeah, I see this.

Severity: -- → S2
Status: UNCONFIRMED → NEW
Component: Untriaged → Calendar Frontend
Ever confirmed: true
Product: Thunderbird → Calendar
Summary: calender shows wrong day names in header line → calender shows wrong day names in header line (day of week is forced to sunday and sunday is shown for monday column)
Summary: calender shows wrong day names in header line (day of week is forced to sunday and sunday is shown for monday column) → calender shows wrong day names in header line (first day of week is forced to sunday and sunday is shown for monday column)

Same problem in TB beta candidate 132.0b1

Name Thunderbird
Version 132.0b1
Build-ID 20241001165901

Duplicate of this bug: 1922932
Duplicate of this bug: 1924043
Duplicate of this bug: 1924330
Duplicate of this bug: 1925283

Alice, could we get a regression window?

Flags: needinfo?(alice0775)

STR:

  1. Open Calendar and switch to Month view.
  2. Open Settings at the bottom-left icon.
  3. Change Start the week on: to Monday, Close the Settings tab.
  4. Swith to Multiweek
    --- Bug appears, The day of the week is off by a day.

Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=331f0cfa62633b781c72c6a8bd3b1ae8fda995af&tochange=39c81744e6a537f16938f3ae63af1bd78bb499dc

Flags: needinfo?(alice0775)
Regressed by: 1918010

Okay I see what's going on. The default value of calendar.week.start is 0 (Sunday), but when starting up we read the value from the operating system and change the default to 1 (Monday). But by that time the UI has already read the value and isn't notified of the change, because changes to the defaults don't create notifications. So it still thinks it's 0.

Assignee: nobody → geoff
Status: NEW → ASSIGNED

In the earliest case, ensureInitialized runs as tabs are restored, so always after
setLocaleDefaultPreferences. Unlike connectedCallback which runs as soon as the custom element
is defined and attached to the DOM.

It needs to happen after setLocaleDefaultPreferences to get the correct value if the correct
value is not 0.

Target Milestone: --- → 133 Branch

(In reply to Magnus Melin [:mkmelin] from comment #1)

Oh yeah, I see this.

(In reply to Alice0775 White from comment #8)

STR:

  1. Open Calendar and switch to Month view.
  2. Open Settings at the bottom-left icon.
  3. Change Start the week on: to Monday, Close the Settings tab.
  4. Swith to Multiweek
    --- Bug appears, The day of the week is off by a day.

Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=331f0cfa62633b781c72c6a8bd3b1ae8fda995af&tochange=39c81744e6a537f16938f3ae63af1bd78bb499dc

Good morning, thank you, I did these, I chose the "Start the week on" to "Sunday", it changed, then I went back and chose "Monday" and it worked. Now it is fixed.

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/90ac625ca43a
Set CalendarBaseView.weekStartOffset after the default preferences. r=aleca

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

I'm adding tests in bug 1901962 to hopefully prevent somebody making this mistake again.

See Also: → 1901962
Duplicate of this bug: 1926260
Duplicate of this bug: 1925911
Duplicate of this bug: 1927397
Duplicate of this bug: 1927692
Duplicate of this bug: 1928877

Confirming this issue as verified fixed with 133.0b3(20241107210012) using Windows 11, macOS 14, and Ubuntu 22 using the STR from comment 8.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: