summaryrefslogtreecommitdiffstats
path: root/jquery.weekcalendar.js
diff options
context:
space:
mode:
Diffstat (limited to 'jquery.weekcalendar.js')
-rw-r--r--jquery.weekcalendar.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/jquery.weekcalendar.js b/jquery.weekcalendar.js
index cfa6f48..794113b 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()