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 (
Event will start {utcStartTime}
+Event will start {cetStartTime}
{showRefreshPopup && (