diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-06-25 19:16:16 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-06-25 19:16:56 (GMT) |
commit | 64bde3d495236f6f72c618ebc5004656c0fc67cc (patch) | |
tree | 80a10a0ed86ae11a3b13ae611a936f16ce7462fb /www/js/calendar.js | |
parent | 534d3288e9b58f8351ed915790452d9bfdef9860 (diff) |
only show future show entries
Diffstat (limited to 'www/js/calendar.js')
-rw-r--r-- | www/js/calendar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/calendar.js b/www/js/calendar.js index 815c5d9..740a4dd 100644 --- a/www/js/calendar.js +++ b/www/js/calendar.js @@ -24,7 +24,7 @@ var current_week_offset = 0; function getLastMonday() { - var d = new Date(clock.getRDTimeMS()); + var d = clock.now() d.setUTCHours(12, 0, 0, 0); var dow = d.getUTCDay() if(dow == 0) { @@ -39,7 +39,7 @@ function addDeltaDays(d, days) { } function isToday(d) { - var today = new Date(clock.getRDTimeMS()); + var today = clock.now() today.setUTCHours(12, 0, 0, 0); return ((d - today) == 0) } |