Events with timezone get moved on a wrong day after a drag and drop in month view

RESOLVED FIXED in 4.3

Status

Calendar
Calendar Views
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: Decathlon, Assigned: Decathlon)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
- Steps to reproduce:

1. set Lightning's default timezone to America/New york;
2. import the following calendar with an event in UTC/GMT timezone:

BEGIN:VCALENDAR
BEGIN:VEVENT
CREATED:20150413T125116Z
LAST-MODIFIED:20150413T125154Z
DTSTAMP:20150413T125154Z
UID:2caf0f7c-9b33-4e64-b7a9-7da46e965646
SUMMARY:Test drag&drop event with timezone
DTSTART:20150520T010000Z
DTEND:20150520T020000Z
END:VEVENT
END:VCALENDAR

3. in month/multiweek views, drag and drop the event on a different day.

- Actual result:

after the drop, the event gets moved on the earlier day than the day where the drop occurs.

The bug doesn't occur in day/multiday view.
(Assignee)

Comment 1

2 years ago
Created attachment 8610782 [details] [diff] [review]
patch - v1

The drop session sets the event on a day based on the item date's timezone instead of the default timezone that should be used to display the events in the views.
Attachment #8610782 - Flags: review?(philipp)
Comment on attachment 8610782 [details] [diff] [review]
patch - v1

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

lgtm
Attachment #8610782 - Flags: review?(philipp) → review+
(Assignee)

Updated

2 years ago
Keywords: checkin-needed

Comment 3

2 years ago
Pushed to https://hg.mozilla.org/comm-central/rev/f836c11cd545
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 4.3
You need to log in before you can comment on or make changes to this bug.