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)
Calendar
E-mail based Scheduling (iTIP/iMIP)
Tracking
(Not tracked)
RESOLVED
FIXED
6.2
People
(Reporter: public, Assigned: public)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
1.23 KB,
patch
|
MakeMyDay
:
review+
Fallen
:
approval-calendar-beta+
Fallen
:
approval-calendar-esr+
|
Details | Diff | 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).
Updated•6 years ago
|
Attachment #8987693 -
Attachment is patch: true
Comment 1•6 years ago
|
||
Dirk, just a question, does "modifiedOccurrences" in this part of the code also show in the wrong timezone?
Flags: needinfo?(public)
Assignee | ||
Comment 2•6 years ago
|
||
(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 3•6 years ago
|
||
Comment on attachment 8987693 [details] [diff] [review] Proposed fix Let's choose a reviewer and see what happens. ;)
Attachment #8987693 -
Flags: review?(makemyday)
Comment 4•6 years ago
|
||
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+
Assignee | ||
Comment 5•6 years ago
|
||
(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)
Updated•6 years ago
|
Assignee: nobody → public
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 6•6 years ago
|
||
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)
Updated•6 years ago
|
Keywords: checkin-needed
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
Updated•6 years ago
|
Target Milestone: --- → 6.5
Updated•6 years ago
|
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+
Comment 8•6 years ago
|
||
TB 60 beta 10, Cal 6.2: https://hg.mozilla.org/releases/comm-beta/rev/d72158ae7100854cfa522c7acedba1e6f300ae22 Beta (TB 62, Cal 6.4): https://hg.mozilla.org/releases/comm-beta/rev/8b3976683ae41b6e41647e0501fa7a51694ade03
Target Milestone: 6.5 → 6.2
You need to log in
before you can comment on or make changes to this bug.
Description
•