diff options
author | JSDurand <mmemmew@gmail.com> | 2022-08-30 11:19:30 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-08-30 11:19:30 +0800 |
commit | 7dd9767a8eca66bb40660d8d77c258b60d08d4df (patch) | |
tree | 2c2859411b18a7027f8474d1de414ef209c2df66 | |
parent | 22b63936dba316b78a6a2e44d6d2ea73d92a2159 (diff) |
org: fix date
* org-conf.el (durand-org-postamble): Previously I always use the date
and time at the moment of exporting the document as the document's
creation time. While technically correct, this is not what the
reader wants to know. So I figured out how to obtain the correct
date and time information in the postamble function.
-rw-r--r-- | org-conf.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org-conf.el b/org-conf.el index 142f8ac..9e31b92 100644 --- a/org-conf.el +++ b/org-conf.el @@ -585,7 +585,7 @@ href='https://jsdurand.xyz/favicon.ico'/>") ;;;; Custom postamble -(defun durand-org-postamble (_plist) +(defun durand-org-postamble (plist) "Return the postamble string. PLIST specifies the settings of the project. @@ -594,7 +594,9 @@ that argument." (let ((author "JSDurand") (email "<a href=\"mailto:durand@jsdurand.xyz\"> durand@jsdurand.xyz</a>") - (created (format-time-string "%F %a %T %Z")) + (created (org-export-data + (org-export-get-date plist "%F %a %T %Z") + plist)) (creator (format "%s (<a href=\"https://orgmode.org\">Org</a> mode %s)" |