From 0dd10f5d9743a02aa504155a6f8be14b9c587d44 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Tue, 6 Sep 2011 23:45:25 +0530 Subject: [PATCH] org-odt.el: Format date strings in meta.xml using portable means * contrib/lisp/org-odt.el (org-odt-format-date): %:z format specifier of `format-time-string' is not portable. Replace it with an equivalent implementation using %z specifier. Thanks to Anton Tarasenko for reporting this bug and verifying this fix. See http://lists.gnu.org/archive/html/emacs-orgmode/2011-09/msg00099.html --- contrib/lisp/org-odt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index 2ac7b6679..33ad426c4 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -1525,7 +1525,8 @@ visually." date) (t ;; ISO 8601 format - (format-time-string "%Y-%m-%dT%T%:z"))))) + (let ((stamp (format-time-string "%Y-%m-%dT%H:%M:%S%z"))) + (format "%s:%s" (substring stamp 0 -2) (substring stamp -2))))))) (defconst org-odt-manifest-file-entry-tag "