mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-02 19:36:12 +01:00 
			
		
		
		
	sender API now accepts local time header so we don't have problems with UTC
This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user