| Issue 31: | The new 1.2 calendar is showing one month back | |
| 1 person starred this issue and may be notified of changes. | Back to list |
if you try this you will understand what is hapenning!!!
month is set to 5 but the calendar will display the 6th!!!
<script type='text/javascript'>
$(document).ready(function() {
var d = new Date();
var y = 2009;
var m = 5; //month set to 5 will display 6
$.fullCalendar.monthNames= ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
$('#calendar').fullCalendar({
draggable: true,
timeFormat: "H:i",
events: [
{
id: 1,
title: "Long Event",
start: new Date(y, m, 6, 14,30),
end: new Date(y, m, 11),
className: "test"
},
{
id: 2,
title: "Repeating Event",
start: new Date(y, m, 2)
},
{
id: 2,
title: "Repeating Event",
start: new Date(y, m, 12)
},
{
id: 3,
title: "Meeting",
start: new Date(y, m, 20, 9,0)
},
{
id: 4,
title: "Click for Facebook",
start: new Date(y, m, 27, 22),
end: new Date(y, m, 29),
url: "http://facebook.com/",
}
]
});
});
</script>
Jun 7, 2009
Project Member
#1
adamrs...@gmail.com
Status:
Done
Jun 7, 2009
oopsss!!! sorry but upgrading for 1.1 which worked diferently... |
|
| ► Sign in to add a comment |