Closed Bug 1797294 Opened 2 years ago Closed 2 months ago

Today pane does not update when PC wakes up from sleep mode on next day

Categories

(Calendar :: Calendar Frontend, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1757341

People

(Reporter: haertl.mike, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Steps to reproduce:

I suspend my PC with thunderbird open in the evening and wake it up again the next morning.

I'm on Tunderbird 102.4.0 (64-Bit) on Linux Mint 21.

Actual results:

The today pane on the right side in thunderbird still shows yesterdays date and appointments.

So it seems that the bug https://bugzilla.mozilla.org/show_bug.cgi?id=1589023 which was fixed for some versions is now back again.

Expected results:

The current date should be shown in the today pane together with todays appointments.

Severity: -- → S3
Component: Untriaged → Calendar Frontend
Product: Thunderbird → Calendar
See Also: → 1795176, 1589023

Wfm on Windows 11, 102.4.0 (64-bit).

STR (for faster testing)

  • close Thunderbird (important)
  • change system time to 23:50
  • start Thunderbird, show Today Pane, and check quickly that date is in sync with sys date
  • hibernate OS (suspend to disk, not sleep - had to enable this in control panel of Win11 to show up in Off switch options)
    • ensure that there's enough time for hibernation to fully complete before 24:00
  • wait 11 minutes (until 00:01 fake sys time)
  • wake up computer from hibernation
  • check date on Today Pane of TB which is still open

Actual = Expected

  • Today Pane should pick correct current sys date (next day) after hibernation across midnight

Matt, can you confirm whether this fails for you?

Flags: needinfo?(unicorn.consulting)
See Also: → 1718574

This morning I've checked the error console and found this error which seems to be related:

07:17:52.434 Assert failed: TypeError: startDate is null
 calUtils.jsm:109
    ASSERT resource:///modules/calendar/calUtils.jsm:109
    doMidnightUpdate chrome://calendar/content/calendar-chrome-startup.js:366
    emit resource://gre/modules/EventEmitter.jsm:160
    emit self-hosted:1115
    notify resource:///modules/CalMetronome.jsm:132
    observe resource:///modules/CalMetronome.jsm:83

I have not had time to test. But a look at the fix in bug 1589023 would indicate that the code used there is no longer present in the source post bug 1753558

ie
showDate(date) {
if (date) {
this.setDateRange(date.startOfMonth, date.endOfMonth);
this.selectedDay = date;
} else {
this.setDateRange(this.rangeStartDate, this.rangeEndDate);
}
}

Flags: needinfo?(unicorn.consulting)
Duplicate of this bug: 1796991
Blocks: 1809425

Mike, have you tried Thunderbird 115 and do you still experience this issue?

Flags: needinfo?(haertl.mike)

Yes, I still have the issue almost every day.

My current version is 115.3.1 (Linux Mint).

Flags: needinfo?(haertl.mike)
Status: UNCONFIRMED → NEW
Ever confirmed: true

(In reply to haertl.mike from comment #7)

Yes, I still have the issue almost every day.

My current version is 115.3.1 (Linux Mint).

I have this issue on 115.4.2 Win10

Today's date is 12 Sun, but the date for 'Today' was 10 Fri. I needed to advance the day to the correct day to get rid of past events. And I don't hibernate or go into sleep mode.

The Bug ist still present in 115.6.0 running on Kubuntu.
I usually put my laptop to sleep (suspend to RAM) in the evening and when I resume it the next morging the "old" date ist display in the calendar tab. If you put the laptop to sleep for several days you can easily miss an appointment because of this!

I have the problem on Debian 12 with Thunderbird 115.14.0.

Thunderbird 128.4.3esr (64-Bit) on Debian 12 has the following error in the error log:

Assert failed: TypeError: this.dayHeaders is undefined
 calUtils.sys.mjs:131:15
    ASSERT resource:///modules/calendar/calUtils.sys.mjs:131
    doMidnightUpdate chrome://calendar/content/calendar-chrome-startup.js:319
    emit resource://gre/modules/EventEmitter.sys.mjs:148
    notify resource:///modules/CalMetronome.sys.mjs:130
    observe resource:///modules/CalMetronome.sys.mjs:81
Status: NEW → RESOLVED
Closed: 2 months ago
Duplicate of bug: 1757341
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.