| Issue 151: | Timezone discrepency between calendar views | |
| 2 people starred this issue and may be notified of changes. | Back to list |
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
Oct 28, 2009
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
Hi thanks , for the tip. Can you let me know where it goes? Cheers.
Oct 29, 2009
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
Thanks ! Forgot to mention i'm on *nix ... doh!
Oct 31, 2009
Issue 159 has been merged into this issue.
Oct 31, 2009
fixed in 1.4.1. thanks for the reports! (let me know if any more problems)
Status:
Fixed
Nov 3, 2009
Thanks ! :) Spiro
Aug 13, 2013
(No comment was entered for this change.)
Status:
Implemented
Aug 13, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |