X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/a57471f93507c55b55ee9e28c493ba78b46796e3..06e21633a4a9de1e8013376cf92d912817df28cd:/lisp/time-stamp.el?ds=sidebyside diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index 5934058399..fda8cd1438 100644 --- a/lisp/time-stamp.el +++ b/lisp/time-stamp.el @@ -424,10 +424,10 @@ format the string." (let ((ts-real-time-zone (getenv "TZ"))) (unwind-protect (progn - (set-time-zone-rule time-stamp-time-zone) + (setenv "TZ" time-stamp-time-zone) (format-time-string (time-stamp-string-preprocess ts-format))) - (set-time-zone-rule ts-real-time-zone))) + (setenv "TZ" ts-real-time-zone))) (format-time-string (time-stamp-string-preprocess ts-format))) ;; handle version 1 compatibility