Issue 151: Timezone discrepency between calendar views
Status:  Released
Owner: ----
Closed:  Aug 2013
Reported by spiro.st...@gmail.com, Oct 28, 2009
Hi there , 
Firstly thank you for such a nice solution! It is awesome especially 1.4.
Hopefully you don't  mind giving me some help ;) 
I am trying to create a modal dialog that will present the user 
with a form to create an event when they click on the calendar however I
get a problem with the timezone when clicking an event. I am living in
Wales and we use GMT and BST. However I would like all dates to be treated
in GMT timestamps regardless of the time of year. I have attached some code
below which hopefully demonstrates the problem. 

When I click an date in month view my timezone is : 
GMT +0100 (BST) 
But in week and day mode it is 
GMT +0000 (BST) 
Please help I click on  what should be 16:00 and my alert is saying 15:00... 

Cheers ! 

$(document).ready(function() {
	var $calendar =$('#calendar');  
	$calendar.fullCalendar({
		theme: true,
		aspectRatio: 2.4, 
		header: {
			left: 'prev,next today',
			center: 'title',
			right: 'month,agendaWeek,agendaDay'
		},
		editable: true,
		events:  "../ajax/list.php?param=list.events",
		dayClick: function(dayDate, allDay, calEvent, view) {
			alert(dayDate); 
		}
	});
}); 
Oct 28, 2009
#1 onetm...@gmail.com
I have exactly this problem too, but I also noticed that it is positioning things
wrong ( out by an hour )  so I think that where we are clicking is 15:00 it just
looks like 16:00 and infact if there was an event at 1500 it would show as 1600.

Hope that makes sense, it doesn't to me and I wrote it.

Oct 28, 2009
#2 onetm...@gmail.com
Okay, So I have no idea why this work but this is what I did to fix it.

1417c1417
< 			d = new Date(1970, 0, 1);
---
> 			d = new Date(1970, 1, 1);

Hope that helps.


Oct 28, 2009
#3 spiro.st...@gmail.com
Hi thanks , for the tip. Can you let me know where it goes? 
 

Cheers. 
Oct 29, 2009
Project Member #4 adamrs...@gmail.com
thank you, i finally recreated this bug (couldn't do it on windows, but got it on 
*nix). i have a pretty good idea of where it comes from. expect a bugfix release either 
today or tomorrow, definitely by monday. thanks
Status: Accepted
Oct 29, 2009
#5 spiro.st...@gmail.com
Thanks ! Forgot to mention i'm on *nix ... doh! 

Oct 31, 2009
Project Member #6 adamrs...@gmail.com
 Issue 159  has been merged into this issue.
Oct 31, 2009
Project Member #7 adamrs...@gmail.com
fixed in 1.4.1. thanks for the reports! (let me know if any more problems)
Status: Fixed
Nov 3, 2009
#8 spiro.st...@gmail.com
Thanks !

 :) 

Spiro 

Aug 13, 2013
Project Member #9 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #10 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released