Closed Bug 1168536 Opened 9 years ago Closed 9 years ago

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

Categories

(Calendar :: Calendar Frontend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bv1578, Assigned: bv1578)

Details

Attachments

(1 file)

- 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.
Attached patch patch - v1 — — Splinter Review
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+
Keywords: checkin-needed
Pushed to https://hg.mozilla.org/comm-central/rev/f836c11cd545
Status: ASSIGNED → RESOLVED
Closed: 9 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.

Attachment

General

Creator:
Created:
Updated:
Size: