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:
Levi Neely 2025-11-05 18:46:18 +01:00
parent 84bfa3c19b
commit 8d817b111e
1 changed files with 2 additions and 1 deletions

View File

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