Преглед на файлове

org.el: Use `org-float-time' instead f the obsolete `time-to-seconds' function

* org.el (org-time-stamp-to-now): Use `org-float-time' instead
of the obsolete `time-to-seconds' function.
Bastien Guerry преди 13 години
родител
ревизия
a9c5399983
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -15914,7 +15914,7 @@ Don't touch the rest."
 (defun org-time-stamp-to-now (timestamp-string &optional seconds)
   "Difference between TIMESTAMP-STRING and now in days.
 If SECONDS is non-nil, return the difference in seconds."
-  (let ((fdiff (if seconds 'time-to-seconds 'time-to-days)))
+  (let ((fdiff (if seconds 'org-float-time 'time-to-days)))
     (- (funcall fdiff (org-time-string-to-time timestamp-string))
        (funcall fdiff (current-time)))))