summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README3
-rw-r--r--www/js/calendar.js2
2 files changed, 3 insertions, 2 deletions
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
</Directory>
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));