summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-10-02 15:37:56 (GMT)
committer Bastien Guerry <bzg@altern.org>2012-10-02 15:37:56 (GMT)
commit154c4c87621e25c58ab99a45c8056e43898c084f (patch)
tree290c56ab06f832ac65b958cffdbd28c3d36d1a0c
parenta9c5399983d3cbccdde40b029ec00d23f34b464b (diff)
downloadorg-mode-154c4c87621e25c58ab99a45c8056e43898c084f.zip
org-mode-154c4c87621e25c58ab99a45c8056e43898c084f.tar.gz
org.el (org-deadline-close): Use `org-time-stamp-to-now'
* org.el (org-deadline-close): Use `org-time-stamp-to-now'.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 95ed839..cdc9ff5 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15921,7 +15921,7 @@ If SECONDS is non-nil, return the difference in seconds."
(defun org-deadline-close (timestamp-string &optional ndays)
"Is the time in TIMESTAMP-STRING close to the current date?"
(setq ndays (or ndays (org-get-wdays timestamp-string)))
- (and (< (org-days-to-time timestamp-string) ndays)
+ (and (< (org-time-stamp-to-now timestamp-string) ndays)
(not (org-entry-is-done-p))))
(defun org-get-wdays (ts)