Uhrzeit fix

This commit is contained in:
2025-10-08 12:07:56 +02:00
parent e378ce4a97
commit 495bfe71a3
14 changed files with 176 additions and 165 deletions

View File

@@ -134,7 +134,7 @@ app.get(
const events = await readEvents();
const sorted = events
.slice()
.sort((a, b) => new Date(a.date) - new Date(b.date));
.sort((a, b) => a.date.localeCompare(b.date));
res.json(sorted);
})
);