Skip to content

Commit

Permalink
Fix lastchange time in Problems list, closes #1596
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 23, 2023
1 parent 23e9576 commit 713678a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panel-triggers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function isNewProblem(problem: ProblemDTO, highlightNewerThan: string): b
const DEFAULT_TIME_FORMAT = 'DD MMM YYYY HH:mm:ss';

export function formatLastChange(lastchangeUnix: number, customFormat?: string) {
const date = new Date(lastchangeUnix);
const date = new Date(lastchangeUnix * 1000);
const timestamp = dateMath.parse(date);
const format = customFormat || DEFAULT_TIME_FORMAT;
const lastchange = timestamp!.format(format);
Expand Down

0 comments on commit 713678a

Please sign in to comment.