diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index 3fee5e62..1e449121 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -423,7 +423,7 @@ Ox.Calendar = function(options, self) { } else { if (self.options.zoom < self.maxZoom) { self.options.date = new Date( - (+self.options.date + +getMouseDate(e)) / 2 + (+self.options.date + +getMouseDate(data)) / 2 ); self.options.zoom++; } diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index ca0fef5a..14a549e9 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -396,7 +396,6 @@ Ox.formatDateRangeDuration = function(start, end, utc) { } // advance the date by one unit Ox['set' + parts[i]](date, Ox['get' + parts[i]](date, utc) + 1, utc); - Ox.print(key, '.....', date) if (date <= dates[1]) { // still within the range, add one unit values[i] = (values[i] || 0) + 1;