From d9d327ff02d850e9e9f6ad2479609d90b9ced6c1 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 30 Nov 2009 15:09:29 +0100 Subject: [PATCH] Make sure that the initial date is always at midnight. --- kronolith/js/kronolith.js | 4 +--- kronolith/lib/Kronolith.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 7f3449d99..32e4f5599 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -25,7 +25,7 @@ KronolithCore = { eventsLoading: {}, loading: 0, fbLoading: 0, - date: new Date(), + date: Date.today(), tasktype: 'incomplete', growls: 0, alarms: [], @@ -763,8 +763,6 @@ KronolithCore = { date7 = date.clone().add(1).week(), today = Date.today(), weekStart, weekEnd, weekEndDay, dateString, td, tr, i; - day = new Date(day.getFullYear(), day.getMonth(), day.getDate(), 0, 0, 0); - // Remove old calendar rows. Maybe we should only rebuild the minical // if necessary. tbody.childElements().invoke('remove'); diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 3c76e6ae3..90f74648d 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -75,9 +75,9 @@ class Kronolith Horde::addScriptFile('dhtmlHistory.js', 'horde'); Horde::addScriptFile('redbox.js', 'horde'); Horde::addScriptFile('tooltips.js', 'horde'); - Horde::addScriptFile('kronolith.js', 'kronolith'); Horde::addScriptFile($datejs, 'kronolith'); Horde::addScriptFile('date.js', 'kronolith'); + Horde::addScriptFile('kronolith.js', 'kronolith'); // No IE 8 code at the moment. header('X-UA-Compatible: IE=7'); -- 2.11.0