emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/org-journal 129dede1a0 2/9: Use time-subtract instead of t


From: ELPA Syncer
Subject: [nongnu] elpa/org-journal 129dede1a0 2/9: Use time-subtract instead of time-since for clarity
Date: Sun, 18 Feb 2024 13:00:29 -0500 (EST)

branch: elpa/org-journal
commit 129dede1a0c61e0fd914ed9b9aed2baab831ee7c
Author: SqrtMinusOne <thexcloud@gmail.com>
Commit: SqrtMinusOne <thexcloud@gmail.com>

    Use time-subtract instead of time-since for clarity
---
 org-journal.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/org-journal.el b/org-journal.el
index 3bb08095f2..98eead5ef9 100644
--- a/org-journal.el
+++ b/org-journal.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]