From 489c67fd1544407524913175903b20e6a18ff069 Mon Sep 17 00:00:00 2001 From: Augustin-FL Date: Fri, 27 Dec 2024 16:54:51 +0100 Subject: [PATCH] Use the timzeone offset of the current date This helps when having multiple time zones accros the year (summer time/winter time) --- incidents/static/custom_js/details_actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incidents/static/custom_js/details_actions.js b/incidents/static/custom_js/details_actions.js index 432e12b0..05fc1d69 100755 --- a/incidents/static/custom_js/details_actions.js +++ b/incidents/static/custom_js/details_actions.js @@ -93,7 +93,7 @@ $(function () { var text = comment.fields.comment; var action = comment.fields.action; var date = new Date(comment.fields.date); - date = new Date(date.getTime() - new Date().getTimezoneOffset() * 60 * 1000).toISOString().slice(0, 16) + date = new Date(date.getTime() - date.getTimezoneOffset() * 60 * 1000).toISOString().slice(0, 16) $("#addComment").modal('toggle');