Skip to content

Commit

Permalink
[FIX] Fixed date format in badge timelkine
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Mar 14, 2024
1 parent 927c737 commit 3189180
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/app/static/assets/js/iris/case.timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ function buildEvent(event_data, compact, comments_map, tree, tesk, tmb, idx, rea


let day = dta[0];
// Transform the date to the user's system format. day is in the format YYYY-MM-DD. We want our date in the user's host format, without the minutes and seconds.
// First parse the date to a Date object
let date = new Date(day);
// Then use the toLocaleDateString method to get the date in the user's host format
day = date.toLocaleDateString();

let hour = dta[1].split('.')[0];

Expand Down

0 comments on commit 3189180

Please sign in to comment.