Commit 73889a29 authored by Johannes Bill's avatar Johannes Bill

fix for invalid data

parent dca1cf1a
......@@ -141,6 +141,7 @@ function wrapper(_epochSpan) {
}
function parseTime(time) {
time = time || "";
var split = time.split(":");
return {
h: parseInt(split[0]) || 0,
......@@ -149,9 +150,7 @@ function wrapper(_epochSpan) {
}
function parseDate(date) {
if (date.length == 0) {
return null;
}
date = date || "";
var split = date.split(".");
if(!split || split.length < 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment