diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-06-22 19:49:19 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-06-22 19:49:36 (GMT) |
commit | 2007dd5ef2707e497d99434027048aee20ad43b3 (patch) | |
tree | 6c4a33421b89c08952ee34681d2f62b7e67a087a | |
parent | 1c2f67f93e01a4b0f9f2bb690c77821fb6dd9326 (diff) |
use noon to generate dates, updated Readme
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | www/js/calendar.js | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -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)); |