aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Turner <joseph@breatheoutbreathe.in>2024-11-04 20:53:36 -0800
committerCraig Jennings <c@cjennings.net>2026-04-29 04:01:50 -0500
commit4c6e62a68a1dea9f7e87c20f8a8754058a369373 (patch)
treee153cf8f8e270d6b2a3fa451e9680882b389795f
parent6e1830875c4a31ac1621646c27e1c5b169221b01 (diff)
downloadorg-drill-4c6e62a68a1dea9f7e87c20f8a8754058a369373.tar.gz
org-drill-4c6e62a68a1dea9f7e87c20f8a8754058a369373.zip
Update org-drill-time-to-inactive-org-timestamp to Org 9.6 format
(cherry picked from commit 76d45fb0ea6e216b2cb173bdcf73ef284d350ff8)
-rw-r--r--org-drill.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/org-drill.el b/org-drill.el
index 09e88b6..e8dc646 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -763,7 +763,10 @@ CMD is bound, or nil if it is not bound to a key."
(defun org-drill-time-to-inactive-org-timestamp (time)
"Convert TIME into org-mode timestamp."
(format-time-string
- (concat "[" (substring (cdr org-time-stamp-formats) 1 -1) "]")
+ ;; TODO(deprecate-org-9.5): Remove backward-compat code.
+ (if (version<= "9.6" (org-version))
+ (org-time-stamp-format t 'no-bracket)
+ (concat "[" (substring (cdr org-time-stamp-formats) 1 -1) "]"))
time))
(defun org-drill-map-entries (func &optional scope drill-match &rest skip)