My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1441: Event is shited back to one hour when daylight saving is there
2 people starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 385
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by mayanksi...@gmail.com, Jun 17, 2012
Hi,

There seems to be an issue with the calendar when we try to show an event on the date that comes under daylight saving, and the event which say must be scheduled on 03:00pm would be shifted to 2:00pm.

This problem is occurring with Australian Time-zone where the events tends to shift back one hour on say 7th of Oct. 
Nov 25, 2012
#1 mgh...@gmail.com
Yes, there definitely seems to be a problem with fullcalendar handling of daylight saving time.

The steps to reproduce the issue:
- with a calendar that starts at 7am (for the sake of this example)
- set date to March 10, 2013
- add an event to 9am

What you'll get is an event at 8am.  This is because March 10, 2013 at 2am is the cut over to daylight saving time (assuming you're in an area that observes DST).  Fullcalendar calls date.setHours(2) for the 2 hours from 7am to 9am (start of calendar to appointment time) and then calls setMinutes(420) for the 7 hours from midnight to start of calendar (7 am).

The setHours(2) sets the time to 2am, but that is the time change time, so it shows up as 1am (still in STANDARD time, not daylight time) then the +7 gives you 8am instead of 9am.

I don't know why javascript works this way, seems like setting hours to 2 should set hours to 2 and the standard/daylight time should be set correctly, but instead it jumps you back an hour and leaves you in STANDARD time.  But anyway, seems like normal javascript behavior from what I've found on the web so I think it's something fullcalendar just needs to deal with correctly.
Aug 15, 2013
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 385
Sign in to add a comment

Powered by Google Project Hosting