Skip to content

Build your personal knowledge base with Trilium Notes

make sure date label is always created with YYYY-MM-DD and not the rest of date time

zadamfe86c09f22df
diff --git a/src/services/date_notes.js b/src/services/date_notes.js
index bcb3d601fa..ee45c7ca16 100644
--- a/src/services/date_notes.js
+++ b/src/services/date_notes.js
@@ -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;