From 2007dd5ef2707e497d99434027048aee20ad43b3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 22 Jun 2016 21:49:19 +0200 Subject: use noon to generate dates, updated Readme diff --git a/README b/README index 4b58c4e..bb3af85 100644 --- a/README +++ b/README @@ -59,5 +59,6 @@ add the following to the virtualhost config: Require all granted AliasMatch "^/(js|img|styles)(.*)" "/var/www/rhrdweb/www/$1$2" - AliasMatch "^(.*)" "/var/www/rhrdweb/www/index.html" + AliasMatch "^/([^.]+)(\.html)?$" "/srv/rhrdweb/rhrdweb/www/$1.html" + ErrorDocument 404 "/index.html" ~~~/snip~~~ diff --git a/www/js/calendar.js b/www/js/calendar.js index 48ba5ef..afc2369 100644 --- a/www/js/calendar.js +++ b/www/js/calendar.js @@ -25,7 +25,7 @@ var current_week_offset = 0; function getLastMonday() { var d = new Date(clock.getRDTimeMS()); - d.setUTCHours(0, 0, 0, 0); + d.setUTCHours(12, 0, 0, 0); var dow = d.getUTCDay() if(dow == 0) { return new Date(d - (6*24*3600000)); -- cgit v0.10.2