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

fix for invalid data

parent dca1cf1a
...@@ -141,6 +141,7 @@ function wrapper(_epochSpan) { ...@@ -141,6 +141,7 @@ function wrapper(_epochSpan) {
} }
function parseTime(time) { function parseTime(time) {
time = time || "";
var split = time.split(":"); var split = time.split(":");
return { return {
h: parseInt(split[0]) || 0, h: parseInt(split[0]) || 0,
...@@ -149,9 +150,7 @@ function wrapper(_epochSpan) { ...@@ -149,9 +150,7 @@ function wrapper(_epochSpan) {
} }
function parseDate(date) { function parseDate(date) {
if (date.length == 0) { date = date || "";
return null;
}
var split = date.split("."); var split = date.split(".");
if(!split || split.length < 2) { 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