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

@@ -24,5 +24,18 @@
"location": "Erkrath",
"category": "hi",
"image": "/uploads/atos-logo-blau-jpg-1758737887080.jpg"
},
{
"id": "915d730b-1239-478a-aa86-0cbb4edeea2f",
"slug": "maimarkt",
"createdAt": "2025-10-08T09:51:32.512Z",
"updatedAt": "2025-10-08T09:52:18.407Z",
"title": "Maimarkt",
"description": "Everybody is welcome",
"date": "2025-10-17",
"time": "",
"location": "TX",
"category": "Youth",
"image": "/uploads/output-png-1759917092013.png"
}
]

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);
})
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB