diff --git a/templates/index.html b/templates/index.html index 32e05ea..66fe666 100644 --- a/templates/index.html +++ b/templates/index.html @@ -36,6 +36,8 @@ }, methods: { timestampToDate: function (timestamp) { + if (timestamp === null) return ""; + return new Date(timestamp * 1000).toLocaleString() } } diff --git a/templates/job.html b/templates/job.html index 0d2e021..6ba98a2 100644 --- a/templates/job.html +++ b/templates/job.html @@ -38,6 +38,8 @@ }, methods: { timestampToDate: function (timestamp) { + if (timestamp === null) return ""; + return new Date(timestamp * 1000).toLocaleString() }, cancelJob: function() {