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

This commit is contained in:
zadam 2019-03-05 20:49:39 +01:00
parent c8e01d6cce
commit fe86c09f22

View File

@ -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;