User Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Steps to reproduce:
My timezone is set to America/New York. I create an event on a single day to start at 8PM and end at 9PM
The event shows up on the correct day however when going to print either the Monthly Grid or the Weekly Planner the event shows up on the following day.
The issue is at 8PM Eastern time is 12AM GMT(UTC) so the event is actually considing itself on the following day. The time shows correct on the printout but the day is not compensating for the timezone making it appear on the following day from 8PM to 9PM
I currently can't reproduce this issue. Do you have calendar.icaljs (->config editor) enabled or disabled?
calendar.icaljs is set to a value of false
Created attachment 8591636 [details]
New Event on calendar
Created for 8pm-9pm America/New York on April 23
Created attachment 8591637 [details]
Only the list view shows the event on the correct day (April 23) the weekly planner and monthly grid move the event to the following day (April 24)
ics data for the calendar event (April 23 from 8pm to 9pm America/New York)
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
Also able to replicate this issue with with Thunderbird 38.0 beta 3 with Lightning 4.0b3
I can confirm this behavior but I think it has already been reported before, though I'm not able to find a previous bug.
- set the timezone in Lightning to America/New York;
- import the calendar in comment 5;
- display the print dialog with the Weekly Planner layout and set the Custom date range in the week with the event.
It is caused by the fact that the day boxes in the Weekly layout have the default timezone (America/New york), instead the events are placed inside the day with their own timezone (UTC) but show the start/end time with the default timezone.
*** Bug 1163123 has been marked as a duplicate of this bug. ***
Created attachment 8604532 [details] [diff] [review]
patch - v1
The boxDateKey variable gets a wrong value and the items get placed in wrong position inside the dayTable without the timezone correction.
(In reply to Decathlon from comment #9)
> Created attachment 8604532 [details] [diff] [review]
> patch - v1
> The boxDateKey variable gets a wrong value and the items get placed in wrong
> position inside the dayTable without the timezone correction.
I can confirm the patch worked correctly on Thunderbird 24.2.0 with Lightning 2.6.4. for the Weekly Planner. A similar change will also need to be done with calMonthGridPrinter.js as the Monthly Grid has the same original issue.
I will next test the patch on Thunderbird 38.0b4 with Lightning 4.0b3
Comment on attachment 8604532 [details] [diff] [review]
patch - v1
(In reply to Stephen.Ditch from comment #10)
> A similar change will also need to
> be done with calMonthGridPrinter.js as the Monthly Grid has the same
> original issue.
You are right, I will attach an updated patch.
For some reason I can't get the same patch to work with Thunderbird 38.0b4 with Lightning 4.0b4. The calendar events after 8pm are showing up on the following day. Patch worked perfect on 24.2.0 with Lightning 2.6.4, strange.
(In reply to Stephen.Ditch from comment #12)
> For some reason I can't get the same patch to work with Thunderbird 38.0b4
> with Lightning 4.0b4. The calendar events after 8pm are showing up on the
> following day. Patch worked perfect on 24.2.0 with Lightning 2.6.4, strange.
Correction, the patch DOES work on Thunderbird 38.0b4 with Lightning 4.0b4. There was some confusion with the new integration of Lightning in the distribution\extensions folder as this copied the pre-patched calWeekPrinter.js to the profile. Once I copied the updated file to the individual profile, it functioned correctly.
Created attachment 8606711 [details] [diff] [review]
The monthly grid needs exactly the same adjustment about timezones.
Comment on attachment 8606711 [details] [diff] [review]
Review of attachment 8606711 [details] [diff] [review]:
I'm also fine taking this for beta, if we are quick.
Tested patch-v2 on Thunderbird 38.0b4 with Lightning 4.0b4, and events after 8PM on both the Monthly Grid and Weekly Planner are displaying on the correct day! Thanks!
Pushed to comm-central changeset bf2473395e2b
Backported to releases/comm-aurora changeset 10ff342eb381
Backported to releases/comm-beta changeset 3450fc9588a9
Backported to releases/comm-beta changeset 05001d19f200 (THUNDERBIRD_38_VERBRANCH)