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)
Tracking
(thunderbird_esr128 unaffected, thunderbird132+ wontfix, thunderbird133 verified)
| 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)
|
238.83 KB,
image/jpeg
|
Details |
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
Comment 1•2 years ago
|
||
Oh yeah, I see this.
Updated•2 years ago
|
| Reporter | ||
Comment 2•2 years ago
|
||
Same problem in TB beta candidate 132.0b1
Name Thunderbird
Version 132.0b1
Build-ID 20241001165901
Updated•2 years ago
|
Comment 8•2 years ago
•
|
||
STR:
- Open Calendar and switch to
Monthview. - Open Settings at the bottom-left icon.
- Change
Start the week on:toMonday, Close the Settings tab. - 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
Updated•2 years ago
|
| Assignee | ||
Comment 9•2 years ago
|
||
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 | ||
Comment 10•2 years ago
|
||
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.
| Assignee | ||
Updated•2 years ago
|
Comment 11•2 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #1)
Oh yeah, I see this.
(In reply to Alice0775 White from comment #8)
STR:
- Open Calendar and switch to
Monthview.- Open Settings at the bottom-left icon.
- Change
Start the week on:toMonday, Close the Settings tab.- 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.
Comment 12•2 years ago
|
||
Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/90ac625ca43a
Set CalendarBaseView.weekStartOffset after the default preferences. r=aleca
| Assignee | ||
Comment 13•2 years ago
|
||
I'm adding tests in bug 1901962 to hopefully prevent somebody making this mistake again.
| Assignee | ||
Updated•2 years ago
|
Comment 19•2 years ago
|
||
Confirming this issue as verified fixed with 133.0b3(20241107210012) using Windows 11, macOS 14, and Ubuntu 22 using the STR from comment 8.
Description
•