diff options
Diffstat (limited to 'jquery.weekcalendar.js')
-rw-r--r-- | jquery.weekcalendar.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jquery.weekcalendar.js b/jquery.weekcalendar.js index 011820c..0bc2af9 100644 --- a/jquery.weekcalendar.js +++ b/jquery.weekcalendar.js @@ -1322,6 +1322,14 @@ $weekDayColumns.each(function(i, val) { $(this).data('startDate', self._cloneDate(currentDay)); + + var endDate = self._cloneDate(currentDay); + endDate.setTime(currentDay.getTime() + MILLIS_IN_DAY); + + if(endDate.getTimezoneOffset() != currentDay.getTimezoneOffset()) { + endDate.setTime(endDate.getTime()+(endDate.getTimezoneOffset()-currentDay.getTimezoneOffset())*60000); + } + $(this).data('endDate', new Date(currentDay.getTime() + (MILLIS_IN_DAY))); if (self._isToday(currentDay)) { $(this).parent() |