Skip to content

Commit

Permalink
Use the timzeone offset of the current date
Browse files Browse the repository at this point in the history
This helps when having multiple time zones accros the year (summer time/winter time)
  • Loading branch information
Augustin-FL committed Dec 27, 2024
1 parent 7d388b6 commit 489c67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incidents/static/custom_js/details_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 489c67f

Please sign in to comment.