mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08: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); |             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; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam