mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08: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
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ router.post('/image', checkSenderToken, multer.single('upload'), wrap(async (req
|
||||||
return res.status(400).send("Unknown image type: " + file.mimetype);
|
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, {
|
const noteId = (await notes.createNewNote(parentNoteId, {
|
||||||
title: "Sender image",
|
title: "Sender image",
|
||||||
|
|
Loading…
Reference in a new issue