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
This commit is contained in:
parent
6b955077dc
commit
0dd10f5d97
|
@ -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
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue