Commit 685b89a6 authored by Johannes Zellner's avatar Johannes Zellner

Fix display when date is 0

parent 0296c7cc
......@@ -101,6 +101,8 @@ new Vue({
}
},
prettyDate: function (row, column, cellValue, index) {
if (!cellValue) return '';
var date = new Date(cellValue),
diff = (((new Date()).getTime() - date.getTime()) / 1000),
day_diff = Math.floor(diff / 86400);
......
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