Closed Bug 1757341 Opened 3 years ago Closed 3 months ago

Selected date on calendar tab minimonth and views are not updated at midnight

Categories

(Calendar :: Calendar Frontend, defect)

Thunderbird 78
defect

Tracking

(thunderbird_esr102 affected, thunderbird105 affected, thunderbird106 affected, thunderbird_esr115 wontfix, thunderbird_esr128 fixed, thunderbird133 verified)

VERIFIED FIXED
133 Branch
Tracking Status
thunderbird_esr102 --- affected
thunderbird105 --- affected
thunderbird106 --- affected
thunderbird_esr115 --- wontfix
thunderbird_esr128 --- fixed
thunderbird133 --- verified

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1648718 +++

doMidnightUpdate calls getMinimonth().refreshDisplay() which should move the selected day forward at midnight, if the current day was selected. Likewise, the calendar views should update the selected day, but they do not.

Bug 1648718 partially fixed the minimonth, but didn't actually update the selection.

I noticed that if I click the button to move one month forward, then click to move one month backward, the correct "Today" is highlighted. So at least as a work-around that is less annoying than having to restart thunderbird.

(In reply to stevenfalco from comment #5)

I noticed that if I click the button to move one month forward, then click to move one month backward, the correct "Today" is highlighted. So at least as a work-around that is less annoying than having to restart thunderbird.

Yes, it also works when clicking "Today" after moving one or more months forward or backward. But still the bug remains.

For the most part, I haven't seen this issue in a long time. One thing I have seen is that closer to a later evening time (CST in my case), I sometimes see the calendar has moved to the next day. I thought it might have been my Windows Date & Time settings but they were set correctly. It's very random.

For me, the bug seems to be fixed now (@ 108.0b1)!
The current day correctly increments at midnight now. :-)

(In reply to tobias.thommes from comment #12)

For me, the bug seems to be fixed now (@ 108.0b1)!
The current day correctly increments at midnight now. :-)

Geoff, The blocking bugs are all fixed. Anything left to do?

Flags: needinfo?(geoff)

The selected day still isn't updated. So no. The "today" day is, but the selected day isn't.

Flags: needinfo?(geoff)

I mean yes, there's things left to do. Answering the question as asked helps.

Why should the selected day be updated? I would not expect that...
The selected day should at most be updated if it equals the "today" day, otherwise not.
But this would then rather be a feature request than a bug, or not?

The selected day should at most be updated if it equals the "today" day, otherwise not.

That's what I said in comment 0.

Duplicate of this bug: 1803283
Duplicate of this bug: 1679126
Duplicate of this bug: 1867788
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Target Milestone: --- → 133 Branch

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/1afd2d616aaf
Overhaul doMidnightUpdate so that the calendar tab gets updated at midnight. r=tobyp,mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED

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

Status: RESOLVED → VERIFIED

Comment on attachment 9431535 [details]
Bug 1757341 - Overhaul doMidnightUpdate so that the calendar tab gets updated at midnight. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): I'm not really sure, potentially never worked 100%.
User impact if declined: calendar fails to update when the date changes.
Testing completed (on c-c, etc.): landed on central in 133.0a1.
Risk to taking this patch (and alternatives if risky): a little, but this has been on beta for months with no problems I'm aware of.

Attachment #9431535 - Flags: approval-comm-esr128?
Duplicate of this bug: 1797294

Comment on attachment 9431535 [details]
Bug 1757341 - Overhaul doMidnightUpdate so that the calendar tab gets updated at midnight. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr128

Attachment #9431535 - Flags: approval-comm-esr128? → approval-comm-esr128+
Duplicate of this bug: 1932135
Duplicate of this bug: 1940996
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: