From 490977c3db7d64d9e5b3896749ab910a811ee62e Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Tue, 29 Dec 2020 23:11:48 +0000 Subject: [PATCH] Fixed problem with timestamps in Safari-Browsers --- html/js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/js/functions.js b/html/js/functions.js index 5523ab4..e2c0954 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -45,7 +45,7 @@ function getTimezone() { function getLocaltimeFromTimestamp(timestamp) { logIt(timestamp); if (useClientTimezone) { - var localtime = new Date(timestamp + "Z"); + var localtime = new Date(timestamp.replace(/-/g, "/") + " GMT"); return localtime.toLocaleString(); } else { return timestamp;