From 96ca28188a79ce68086e62b5a33f5b6e8c3bab03 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 14 Jan 2017 05:36:59 +0100 Subject: fix parsing of date from href 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; } -- cgit v0.10.2