diff options
Diffstat (limited to 'VegaData/wwwroot/index.js')
| -rw-r--r-- | VegaData/wwwroot/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/VegaData/wwwroot/index.js b/VegaData/wwwroot/index.js index deb9552..cde0974 100644 --- a/VegaData/wwwroot/index.js +++ b/VegaData/wwwroot/index.js @@ -19,6 +19,8 @@ renderShowsBtn.addEventListener("click", () => { }); function dateString(date, small = false) { + console.log(date); + if (small) return Temporal.Instant.from(date).toZonedDateTimeISO(tzId).toPlainDateTime().toLocaleString('nb-NO', { weekday: "long", calendar: 'gregory', hour: "2-digit", minute: "2-digit", month: 'long', day: 'numeric' }) return Temporal.Instant.from(date).toZonedDateTimeISO(tzId).toPlainDateTime().toLocaleString('nb-NO', { weekday: "long", calendar: 'gregory', hour: "2-digit", minute: "2-digit", era: 'long', year: 'numeric', month: 'long', day: 'numeric' }) } @@ -57,7 +59,7 @@ async function renderShows(query) { lis.push(t("li", { class: "show", id: showKey }, [t("span", { class: "title italic" }, showKey), t("ul", undefined, [t("li", undefined, times.filter(e => e.ticketUrl !== "").map(e => t("li", { class: `time time-${e.id}`, id: `${showKey}-${e.startDateTime}` }, [t("a", undefined, [ t("div", undefined, [ - t("span", undefined, dateString(e.startDateTime)), + t("span", { title: e.startDateTime }, dateString(e.startDateTime)), t("span", undefined, `${e.scene} - ${e.tags.join(", ")}`), t("div", { class: "actions" }, [ t("a", { href: e.ticketUrl }, "Billetter"), |
