From 216f93edf52c74066444becf2dda10487d554221 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 19 Nov 2022 14:47:58 +0100 Subject: [PATCH] Fix time handling --- changedetectionio/static/js/diff-render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/static/js/diff-render.js b/changedetectionio/static/js/diff-render.js index 2e48170c..8d5e7a82 100644 --- a/changedetectionio/static/js/diff-render.js +++ b/changedetectionio/static/js/diff-render.js @@ -55,7 +55,7 @@ window.onload = function () { /* Set current version date as local time in the browser also */ var current_v = document.getElementById("current-v-date"); - var dateObject = new Date(newest_version_timestamp); + var dateObject = new Date(newest_version_timestamp*1000); current_v.innerHTML = dateObject.toLocaleString(); onDiffTypeChange(document.querySelector('#settings [name="diff_type"]:checked')); changed();