summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2017-01-14 04:36:59 (GMT)
committerChristian Pointner <equinox@helsinki.at>2017-01-14 04:36:59 (GMT)
commit96ca28188a79ce68086e62b5a33f5b6e8c3bab03 (patch)
treee931f36eb817e504f8eba9c762ca3da61891ebf6 /www
parent5a581ec5a9a3268394ba07567685da300ae6e295 (diff)
fix parsing of date from href
Diffstat (limited to 'www')
-rw-r--r--www/js/todo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/todo.js b/www/js/todo.js
index 5636be5..37eb292 100644
--- a/www/js/todo.js
+++ b/www/js/todo.js
@@ -153,7 +153,7 @@ function todo_init() {
var url = parseLocationHref();
var d = new Date();
if(url.path.length > 1) {
- tmp = new Date(url.path[1]);
+ var tmp = new Date(url.path[1]);
if((Object.prototype.toString.call(tmp) === '[object Date]') || (tmp.toString() !== 'Invalid Date')) {
d = tmp;
}