From 713678a32e6af9d2f00a7bb5af7cd358a1ba1eda Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 23 Mar 2023 12:59:49 +0100 Subject: [PATCH] Fix lastchange time in Problems list, closes #1596 --- src/panel-triggers/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panel-triggers/utils.ts b/src/panel-triggers/utils.ts index c315a43c2..37aedb760 100644 --- a/src/panel-triggers/utils.ts +++ b/src/panel-triggers/utils.ts @@ -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);