Skip to content

Commit

Permalink
org-auto-repeat-maybe: Use effective time for "LAST_REPEAT"
Browse files Browse the repository at this point in the history
* lisp/org.el (org-auto-repeat-maybe): Use effective time when
recording LAST_REPEAT property.

Fixes https://orgmode.org/list/87sfnk7l0h.fsf@jonreeve.com
  • Loading branch information
yantar92 committed Jul 7, 2022
1 parent db12a49 commit 0495961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/org.el
Original file line number Diff line number Diff line change
Expand Up @@ -9666,7 +9666,8 @@ This function is run automatically after each state change to a DONE state."
(while (re-search-forward org-clock-line-re end t)
(when (org-at-clock-log-p) (throw :clock t))))))
(org-entry-put nil "LAST_REPEAT" (format-time-string
(org-time-stamp-format t t))))
(org-time-stamp-format t t)
(org-current-effective-time))))
(when org-log-repeat
(if org-log-setup
;; We are already setup for some record.
Expand Down

0 comments on commit 0495961

Please sign in to comment.