Integrated new time handling system

This commit is contained in:
2025-11-28 15:31:35 -05:00
parent f499e33fe1
commit d24a01db8c
5 changed files with 19 additions and 16 deletions

View File

@@ -76,6 +76,7 @@ eventRouter.post('/', async (req: Request, res: Response) => {
console.log();
let data: CourseEventDetails = req.body;
data.created_by = posterID;
data.event_date = new Date(data.event_date);
const id = await insertCourseEvent(data);
res.status(201).json(id);
} catch (error) {