From 8d817b111ec52f3f266e3662d79f2dd2000e0283 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 5 Nov 2025 18:46:18 +0100 Subject: [PATCH] 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 --- cmd/Journal/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/Journal/main.go b/cmd/Journal/main.go index 3449a61..99bf6e5 100644 --- a/cmd/Journal/main.go +++ b/cmd/Journal/main.go @@ -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)