[-- Attachment #1: Type: text/plain, Size: 310 bytes --] The ODT exporter uses the org-deadline-string for scheduled items. This apparently predates the introduction of the "new" exporter in 2013 - time flies... It was reported on Emacs SE: https://emacs.stackexchange.com/questions/61985/org-export-to-odt-incorrectly-use-deadline-for-scheduled Patch attached. [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: Fix ODT output for scheduled items --] [-- Type: text/x-patch, Size: 935 bytes --] From 429d3eb816d0673326969f50b478f4d622147432 Mon Sep 17 00:00:00 2001 From: Nick Dokos <ndokos@gmail.com> Date: Sat, 28 Nov 2020 10:01:02 -0500 Subject: [PATCH] org-odt-planning: Fix scheduled item output * lis/ox-odt.el (org-odt-planning): Use org-scheduled-string, not org-deadline-string, for scheduled items. See <https://emacs.stackexchange.com/questions/61985/org-export-to-odt-incorrectly-use-deadline-for-scheduled> for an ECM. --- lisp/ox-odt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 4619f9fcd..ef07acfed 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2946,7 +2946,7 @@ channel." (when scheduled (concat (format "<text:span text:style-name=\"%s\">%s</text:span>" - "OrgScheduledKeyword" org-deadline-string) + "OrgScheduledKeyword" org-scheduled-string) (org-odt-timestamp scheduled contents info))))))) -- 2.25.4 [-- Attachment #3: Type: text/plain, Size: 12 bytes --] -- Nick
[-- Attachment #1: Type: text/plain, Size: 49 bytes --] Same patch but fixes the typo in the Changelog: [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: Fix ODT output for scheduled items --] [-- Type: text/x-patch, Size: 936 bytes --] From 7dc4877469c5bed7580ff80e9534480e16972b93 Mon Sep 17 00:00:00 2001 From: Nick Dokos <ndokos@gmail.com> Date: Sat, 28 Nov 2020 10:01:02 -0500 Subject: [PATCH] org-odt-planning: Fix scheduled item output * lisp/ox-odt.el (org-odt-planning): Use org-scheduled-string, not org-deadline-string, for scheduled items. See <https://emacs.stackexchange.com/questions/61985/org-export-to-odt-incorrectly-use-deadline-for-scheduled> for an ECM. --- lisp/ox-odt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 4619f9fcd..ef07acfed 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2946,7 +2946,7 @@ channel." (when scheduled (concat (format "<text:span text:style-name=\"%s\">%s</text:span>" - "OrgScheduledKeyword" org-deadline-string) + "OrgScheduledKeyword" org-scheduled-string) (org-odt-timestamp scheduled contents info))))))) -- 2.25.4 [-- Attachment #3: Type: text/plain, Size: 12 bytes --] -- Nick
Nick Dokos writes:
> Subject: [PATCH] org-odt-planning: Fix scheduled item output
>
> * lisp/ox-odt.el (org-odt-planning): Use org-scheduled-string, not
> org-deadline-string, for scheduled items.
Thank you. Applied (546b2ba26).