change: handlebar abstracts for date

This commit is contained in:
Julian Krauser 2025-05-21 10:56:09 +02:00
parent 496a60f2df
commit 5187a2dba6
6 changed files with 34 additions and 41 deletions

View file

@ -249,12 +249,7 @@ export async function createProtocolPrintoutById(req: Request, res: Response): P
title: protocol.title,
summary: protocol.summary,
iteration: iteration + 1,
date: new Date(protocol.date).toLocaleDateString("de-DE", {
weekday: "long",
day: "2-digit",
month: "2-digit",
year: "numeric",
}),
date: protocol.date,
start: protocol.starttime,
end: protocol.endtime,
agenda: agenda.sort((a, b) => a.sort - b.sort),