CC-3068: Day/Week view and Month view under Calendar page have different ideas about what day is today

-Fixed
This commit is contained in:
Martin Konecny 2011-11-18 17:07:12 -05:00
parent 34252d680a
commit 9bbf1fda17
3 changed files with 5250 additions and 10 deletions

View file

@ -1,6 +1,6 @@
/**
* @preserve
* FullCalendar v1.5.1
* FullCalendar v1.5.1-CUSTOM (Changes by Martin Konecny -added primitive support for timezones)
* http://arshaw.com/fullcalendar/
*
* Use fullcalendar.css for basic styling.
@ -227,7 +227,7 @@ function Calendar(element, options, eventSources) {
var absoluteViewElement;
var resizeUID = 0;
var ignoreWindowResize = 0;
var date = new Date();
var date = adjustDateToServerDate(new Date(), options["serverTimezoneOffset"]);
var events = [];
var _dragElement;
@ -3108,7 +3108,7 @@ function AgendaView(element, calendar, viewName) {
var headCell;
var bodyCell;
var date;
var today = clearTime(new Date());
var today = clearTime(adjustDateToServerDate(new Date(), opt("serverTimezoneOffset")));
for (i=0; i<colCnt; i++) {
date = colDate(i);
headCell = dayHeadCells.eq(i);
@ -5205,4 +5205,4 @@ function HorizontalPositionCache(getElement) {
}
})(jQuery);
})(jQuery);