From 57ce6f9bbfc94a9de776bedfcb1dd90889114483 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 25 Feb 2024 13:11:17 +0100 Subject: [PATCH] Fix timestampToString() for future dates --- dev/Common/Translator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev/Common/Translator.js b/dev/Common/Translator.js index cb8570179..0b609a99d 100644 --- a/dev/Common/Translator.js +++ b/dev/Common/Translator.js @@ -102,8 +102,7 @@ export const timestampToString = (timeStampInUTC, formatStr) => { const now = Date.now(), - time = 0 < timeStampInUTC ? Math.min(now, timeStampInUTC * 1000) : (0 === timeStampInUTC ? now : 0); - + time = 0 < timeStampInUTC ? timeStampInUTC * 1000 : (0 === timeStampInUTC ? now : 0); if (31536000000 < time) { const m = new Date(time), h = LanguageStore.hourCycle(); switch (formatStr) {