Browse Source

org-auto-repeat-maybe: Use effective time for "LAST_REPEAT"

* lisp/org.el (org-auto-repeat-maybe): Use effective time when
recording LAST_REPEAT property.

Fixes https://orgmode.org/list/87sfnk7l0h.fsf@jonreeve.com
Ihor Radchenko 2 năm trước cách đây
mục cha
commit
0495961f36
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

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