fix Journal: identifier must always be creation timestamp
- Identifier uses current date/time (when file was created) - Title uses target date (the journal entry date) - Follows denote convention: identifier = creation time
This commit is contained in:
parent
84bfa3c19b
commit
8d817b111e
|
|
@ -113,7 +113,8 @@ func main() {
|
|||
|
||||
// No entries found - create new entry for target date
|
||||
title := formatJournalTitle(targetDate)
|
||||
identifier := targetDate.Format("20060102") + "T" + now.Format("150405")
|
||||
// Identifier is always the actual creation time
|
||||
identifier := now.Format("20060102T150405")
|
||||
path, err := denote.CreateNote(dir, title, []string{"journal"}, *fileType, identifier)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "error creating journal entry: %v\n", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue