Skip to content

Commit

Permalink
Use time-subtract instead of time-since for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
SqrtMinusOne authored and casch-at committed Feb 18, 2024
1 parent f54e65b commit 963eb74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org-journal.el
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,8 @@ If NO-SELECT is non-nil, open it, but don't show it."
"Open the current journal file"
(interactive)
(let ((org-journal-file (org-journal--get-entry-path
(time-since (* 3600 org-extend-today-until)))))
(time-subtract (current-time)
(* 3600 org-extend-today-until)))))
(if (file-exists-p org-journal-file)
(progn
(funcall org-journal-find-file org-journal-file)
Expand Down

0 comments on commit 963eb74

Please sign in to comment.