diff --git a/static/js/upcoming.js b/static/js/upcoming.js index b172d83..c452467 100644 --- a/static/js/upcoming.js +++ b/static/js/upcoming.js @@ -109,14 +109,17 @@ document.addEventListener("DOMContentLoaded", () => { const colBegin = document.createElement("td"); const formattedStart = event.start.toLocaleString("de-DE", { + // The events take place in Berlin, so name their time in Berlin time + // instead of in the time zone the visitor happens to be in. + timeZone: "Europe/Berlin", weekday: "long", day: "2-digit", month: "2-digit", hour: "2-digit", minute: "2-digit", - }).replace(",", ""); + }); - colBegin.innerText = `${formattedStart.replace(" ", ", ")} Uhr`; + colBegin.innerText = `${formattedStart} Uhr`; row.appendChild(colBegin); const colName = document.createElement("td");