Closed Bug 1471072 Opened 6 years ago Closed 6 years ago

iTIP: Canceled occurrences displayed in wrong timezone

Categories

(Calendar :: E-mail based Scheduling (iTIP/iMIP), defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: public, Assigned: public)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Proposed fix (obsolete) — — Splinter Review
When displaying invitations or invitation replies for recurring events with canceled occurrences, said occurrences might get displayed in the wrong timezone, depending on the event.

STR:
0. Thunderbird 60.0b8, Lightning 6.2, Local Time not (currently) equal to UTC
1. Receive an invitation for a recurring event in a different timezone, which is cancelled for at least some of its instances

Expected:
The summary contains local time only

Actual:
In the "Canceled Occurrences" section, times are displayed as specified in the EXDATE property (depending on the client sending the invitation, this could be a local timezone or UTC. Thunderbird always uses UTC)

Reason:
https://dxr.mozilla.org/comm-central/source/calendar/lightning/modules/ltnInvitationUtils.jsm#160 is
> formattedExDates.push(formatter.formatDateTime(exc.date));
not taking the intended display timezone into account (kDefaultTimezone, https://dxr.mozilla.org/comm-central/source/calendar/lightning/modules/ltnInvitationUtils.jsm#137).

I attached a potential fix, feel free to fix it differently (regular diff -u, should apply to both comm-central and comm-release).
Attachment #8987693 - Attachment is patch: true
Dirk, just a question, does "modifiedOccurrences" in this part of the code also show in the wrong timezone?
Flags: needinfo?(public)
(In reply to Martin Schröder [:martinschroeder] from comment #1)
> Dirk, just a question, does "modifiedOccurrences" in this part of the code
> also show in the wrong timezone?
From code inspection: no (https://dxr.mozilla.org/comm-central/source/calendar/base/src/calDateTimeFormatter.js#205 calls _getItemDates, which in turn uses the local timezone).

However, I am unable to test that, as Thunderbird doesn't consider modified instances when generating invitations (is that another bug?).
Flags: needinfo?(public)
Comment on attachment 8987693 [details] [diff] [review]
Proposed fix

Let's choose a reviewer and see what happens. ;)
Attachment #8987693 - Flags: review?(makemyday)
Comment on attachment 8987693 [details] [diff] [review]
Proposed fix

Review of attachment 8987693 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for finding this and submitting a patch! You fixed this in the correct way, so you will get an r+ with the below considered:

The patch is missing a patch header, please add it (look at other chekins or refer to this comment in the bug with your first calendar patch: https://bugzilla.mozilla.org/show_bug.cgi?id=1308324#c1)

The commit message should include at least the reference to the bug,come with a brief summary (and for convenience of our sheriff already with the reference to the reviewer at least if the if the patch is final) like this:

Bug 1471072 - Canceled occurrences of recurring events are displayed in wrong timezone in invitation summaries;r=MakeMyDay

For more complex commit messages are welcome, but for this fix, the above would be sufficient.
Attachment #8987693 - Flags: review?(makemyday) → feedback+
Attached patch Fix against comm-central — — Splinter Review
(In reply to [:MakeMyDay] from comment #4)
> The patch is missing a patch header, please add it
Seems I don't get around installing hg and checking out everything ;)

Here you go; not sure if the patch header for comm-release would be different but the patch itself should apply.
Attachment #8987693 - Attachment is obsolete: true
Attachment #8989469 - Flags: review?(makemyday)
Assignee: nobody → public
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 8989469 [details] [diff] [review]
Fix against comm-central

Review of attachment 8989469 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, r+.

Let's consider it for uplifting to esr60.
Attachment #8989469 - Flags: review?(makemyday)
Attachment #8989469 - Flags: review+
Attachment #8989469 - Flags: approval-calendar-esr?(philipp)
Attachment #8989469 - Flags: approval-calendar-beta?(philipp)
Keywords: checkin-needed
Blocks: 1473329
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/b68b8611671f
Display canceled occurrences of recurring events in correct timezone in invitation summaries. r=MakeMyDay
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 6.5
Attachment #8989469 - Flags: approval-calendar-esr?(philipp)
Attachment #8989469 - Flags: approval-calendar-esr+
Attachment #8989469 - Flags: approval-calendar-beta?(philipp)
Attachment #8989469 - Flags: approval-calendar-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: