From 99ea2e08788dfa8d8df235a210a1cb481fac9b40 Mon Sep 17 00:00:00 2001 From: Roger Welsh Date: Sat, 20 Mar 2021 21:04:02 +1300 Subject: [PATCH] Add DATEFORMAT option to letterheader Allows adjustment of the dateformat string used for the coverletter header --- ox-awesomecv.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox-awesomecv.el b/ox-awesomecv.el index 1d4b930..74f8627 100644 --- a/ox-awesomecv.el +++ b/ox-awesomecv.el @@ -247,10 +247,11 @@ as a communication channel." (label-str (if label (format "%s\\hfill{}" label) "")) ;; Other Coverletter properties (recipient (or (org-element-property :RECIPIENT headline) "")) + (letter-dateformat (org-element-property :DATEFORMAT headline)) (letter-date (format "\\letterdate{%s}" (if date - (format "%s" (org-awesomecv-org-timestamp-to-dateformat date nil t)) + (format "%s" (org-awesomecv-org-timestamp-to-dateformat date letter-dateformat t)) "\\today"))) (letter-opening (or (format "\\letteropening{%s}" (org-element-property :LETTER_OPENING headline)) "")) (letter-closing (or (format "\\letterclosing{%s}" (org-element-property :LETTER_CLOSING headline)) ""))