diff options
| -rw-r--r-- | org-drill.el | 5 |
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) |
