diff --git a/backend/src/tools/nachrichten/routes.js b/backend/src/tools/nachrichten/routes.js index 4ee7c80..e1b5e16 100644 --- a/backend/src/tools/nachrichten/routes.js +++ b/backend/src/tools/nachrichten/routes.js @@ -90,7 +90,7 @@ router.post('/messages/:userId', authenticate, async (req, res) => { if (!recipient) return res.status(404).json({ error: 'Benutzer nicht gefunden' }); const result = db.prepare( - "INSERT INTO messages (sender_id, recipient_id, encrypted_content, iv, created_at) VALUES (?, ?, ?, ?, datetime('now'))" + "INSERT INTO messages (sender_id, recipient_id, encrypted_content, iv, created_at) VALUES (?, ?, ?, ?, datetime('now', 'localtime'))" ).run(me, recipId, encrypted_content, iv); const senderName = db.prepare('SELECT username FROM users WHERE id = ?').get(me)?.username || 'Jemand';