mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +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:
parent
c8e01d6cce
commit
fe86c09f22
@ -116,7 +116,7 @@ async function getDateNote(dateStr) {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user