Skip to content

Commit

Permalink
org-odt.el: Format date strings in meta.xml using portable means
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kjambunathan committed Sep 6, 2011
1 parent 6b95507 commit 0dd10f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/lisp/org-odt.el
Expand Up @@ -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
"
Expand Down

0 comments on commit 0dd10f5

Please sign in to comment.