diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-07-12 13:58:31 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-07-12 13:58:31 +0200 |
| commit | d09eb5e6348ffba76454df871f91d9cd15c20635 (patch) | |
| tree | 4aef8afe9d8a611919ebd33405a6e03e79961da4 /mass-graducation | |
| parent | 1a291fb37fdf0e5a1b2a54825e5af7c5e986f00f (diff) | |
| download | bycs-sol-d09eb5e6348ffba76454df871f91d9cd15c20635.tar.gz bycs-sol-d09eb5e6348ffba76454df871f91d9cd15c20635.zip | |
js: introduce common date formatting helpers
Diffstat (limited to 'mass-graducation')
| -rw-r--r-- | mass-graducation/src/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mass-graducation/src/main.js b/mass-graducation/src/main.js index 3d20f0b..8d009b0 100644 --- a/mass-graducation/src/main.js +++ b/mass-graducation/src/main.js @@ -8,7 +8,7 @@ import { import { fetchGroups } from "../../js/group.js"; import { initSelection } from "../../js/selection.js"; -import { getName } from "../../js/utils-ENV.js"; +import { getName, DATETIME_FMT, datetimeStringNow } from "../../js/utils-ENV.js"; let group; let name; @@ -199,7 +199,7 @@ async function loadGroup(selected) { } else { date = graduation.observation.start; } - dateCell.innerHTML = date.toLocaleString("de-DE", { month: "numeric", day: "numeric", year: "numeric", hour: "numeric", minute: "numeric" }); + dateCell.innerHTML = DATETIME_FMT.format(date); row.appendChild(dateCell); const btnCell = document.createElement("td"); |
