My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 573: timezone issue with eventDrop
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2010


Sign in to add a comment
 
Reported by erikru...@gmail.com, Jul 24, 2010
My server is in PST but I am in EST.

When I drag an event from one day to another and drop it, it appears to correctly change days and not times, but on calendar refresh it has changed the time back 3 hours (east to west).

Why is this happening?
Jul 25, 2010
#1 erikru...@gmail.com
To add to this, i am saving to a database backend on eventdrop, and of course pulling from it when doing a calendar refresh.... everything works fine when i'm testing locally (same timezone for server and browser).

Is it because when fullcalendar sends the time to me on eventDrop it is sending me the server time in PST and i'm saving it (which is 3 hours back)?

If so how do I get around this?  
Aug 26, 2010
Project Member #2 adamrs...@gmail.com
yeah, this is an issue with the difference in GMT offset between your client and server and will hopefully be helped in some way by this issue:
https://code.google.com/p/fullcalendar/issues/detail?id=336

basically, you need to take the gmt offset of your client in easter time (-5) and subtract the gmt offset of your server in pacific time (-8) = 3. then add this # of hours to every time you send back to the server (when the eventDrop happens). sorry this is so lame. in the future, i want fullcalendar to handle everything in UTC, but things are not so right now.

Status: Done
Sign in to add a comment

Powered by Google Project Hosting