Prechádzať zdrojové kódy

Revert "org: use org-today in habits auto repeat"

This reverts commit d1eb6cb25b9f7cd3c5222c41ddd088c7217e820c.
Carsten Dominik 14 rokov pred
rodič
commit
238c815502
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      lisp/org.el

+ 2 - 2
lisp/org.el

@@ -11392,13 +11392,13 @@ This function is run automatically after each state change to a DONE state."
 	     ((equal (match-string 1 ts) ".")
 	      ;; Shift starting date to today
 	      (org-timestamp-change
-	       (- (org-today) (time-to-days time))
+	       (- (time-to-days (current-time)) (time-to-days time))
 	       'day))
 	     ((equal (match-string 1 ts) "+")
 	      (let ((nshiftmax 10) (nshift 0))
 		(while (or (= nshift 0)
 			   (<= (time-to-days time)
-			       (org-today)))
+			       (time-to-days (current-time))))
 		  (when (= (incf nshift) nshiftmax)
 		    (or (y-or-n-p (message "%d repeater intervals were not enough to shift date past today.  Continue? " nshift))
 			(error "Abort")))