summaryrefslogtreecommitdiff
path: root/www/js/calendar.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/calendar.js')
-rw-r--r--www/js/calendar.js4
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)
}