Uhrzeit fix
This commit is contained in:
@@ -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);
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user