From fba544d64ef9cf05113e6f3846e492d876cfb38e Mon Sep 17 00:00:00 2001 From: m0rph3us1987 Date: Sat, 28 Feb 2026 14:59:42 +0100 Subject: [PATCH] Countdown now shows time in CET --- Challenges.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Challenges.tsx b/Challenges.tsx index 9b3dcc6..abf8da4 100644 --- a/Challenges.tsx +++ b/Challenges.tsx @@ -130,7 +130,20 @@ export const ChallengeList: React.FC = () => { const isStartedManual = state.isStarted; if (now < startTime && !currentUser?.isAdmin) { - const utcStartTime = new Date(startTime).toUTCString(); + const date = new Date(startTime); + const utcStartTime = date.toUTCString().replace('GMT', 'UTC'); + const cetStartTime = new Intl.DateTimeFormat('en-GB', { + timeZone: 'CET', + weekday: 'short', + day: '2-digit', + month: 'short', + year: 'numeric', + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + hour12: false + }).format(date).replace(',', '') + ' CET'; + return (
@@ -139,6 +152,7 @@ export const ChallengeList: React.FC = () => { setShowRefreshPopup(true)} />

Event will start {utcStartTime}

+

Event will start {cetStartTime}

{showRefreshPopup && (