Closed Bug 1741296 Opened 3 years ago Closed 3 years ago

Agenda relative time label can show for events in a week's time

Categories

(Calendar :: Calendar Frontend, defect)

defect

Tracking

(thunderbird_esr91 unaffected)

RESOLVED FIXED
96 Branch
Tracking Status
thunderbird_esr91 --- unaffected

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

I've just learned that ICAL.js calculates durations in weeks as well as days, i.e. a time in the future could be considered 1 week and 0 days away, rather than 7 days away. The "0 days" bit trips up the code which decides whether to show a relative time label.

The decision would be wrong for events in 7 or 14 or 21 days where ICAL.js is used.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/282790009c6d
Use complete duration when deciding to show a relative time in the agenda. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: