From a23d0225abd829ae031115803749e700bb470278 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 18 Aug 2019 12:26:05 -0400 Subject: [PATCH] org-time-stamp: Simplify encode-time call * lisp/org.el (org-time-stamp): Use org-time-string-to-time. This should have been applied with a6cead0d2 (Backport commit 476066e89 from Emacs, 2019-02-22). --- lisp/org.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 5217048ab..6f42bc7ce 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16045,8 +16045,7 @@ non-nil." ((org-at-timestamp-p 'lax) (match-string 0)))) ;; Default time is either the timestamp at point or today. ;; When entering a range, only the range start is considered. - (default-time (and ts - (apply #'encode-time (org-parse-time-string ts)))) + (default-time (and ts (org-time-string-to-time ts))) (default-input (and ts (org-get-compact-tod ts))) (repeater (and ts (string-match "\\([.+-]+[0-9]+[hdwmy] ?\\)+" ts)