mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
sender API now accepts local time header so we don't have problems with UTC
This commit is contained in:
parent
58f5d0cf6e
commit
6dea73cfe2
@ -66,7 +66,7 @@ router.post('/image', checkSenderToken, multer.single('upload'), wrap(async (req
|
||||
return res.status(400).send("Unknown image type: " + file.mimetype);
|
||||
}
|
||||
|
||||
const parentNoteId = await date_notes.getDateNoteId(utils.nowDate());
|
||||
const parentNoteId = await date_notes.getDateNoteId(req.headers['x-local-date']);
|
||||
|
||||
const noteId = (await notes.createNewNote(parentNoteId, {
|
||||
title: "Sender image",
|
||||
|
Loading…
x
Reference in New Issue
Block a user