diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-02-05 17:28:17 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-02-05 17:28:17 (GMT) |
commit | 5a577416e669d3ae8d4f26947367a08540bc9a03 (patch) | |
tree | 671890463ae0ff8bcb6db66e666ea787f7d85f62 /www/js/utils.js | |
parent | fa705183cfc9c2af1a4e7c09e3e34251435635c0 (diff) |
make jingle view great again
Diffstat (limited to 'www/js/utils.js')
-rw-r--r-- | www/js/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/utils.js b/www/js/utils.js index 1359b39..fab6736 100644 --- a/www/js/utils.js +++ b/www/js/utils.js @@ -57,10 +57,10 @@ var weekday_short = new Array('So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'); function format_datetime(d) { if(Object.prototype.toString.call(d) !== '[object Date]') { - return d; + return '-'; } if (d.toString() === 'Invalid Date') { - return d; + return '-'; } var datetimestr = weekday_short[d.getDay()]; datetimestr += ' ' + Number(d.getDate()).pad(2); |