mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	make sure date label is always created with YYYY-MM-DD and not the rest of date time
This commit is contained in:
		| @@ -116,7 +116,7 @@ async function getDateNote(dateStr) { | |||||||
|             dateNote = await createNote(monthNote.noteId, noteTitle); |             dateNote = await createNote(monthNote.noteId, noteTitle); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         await attributeService.createLabel(dateNote.noteId, DATE_LABEL, dateStr); |         await attributeService.createLabel(dateNote.noteId, DATE_LABEL, dateStr.substr(0, 10)); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return dateNote; |     return dateNote; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user