diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-08-08 11:53:35 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-08-08 11:53:35 -0400 |
commit | 37e11a631937986f03f6216655ea1c964f7286aa (patch) | |
tree | 0ea4917e2a3f3d1a71a9a77ec4d45fccf92a6754 /lisp/time-stamp.el | |
parent | d56176114c8c9226a43db4bf68df562486e454ed (diff) | |
download | emacs-37e11a631937986f03f6216655ea1c964f7286aa.tar.gz |
Lisp code shouldn't use set-time-zone-rule except through setenv.
* time.el (display-time-world-list, display-time-world-display):
* time-stamp.el (time-stamp-string):
* vc/add-log.el (add-change-log-entry): Use setenv instead of
set-time-zone-rule.
* src/editfns.c (Fset_time_zone_rule): Document relationship with the
setenv function.
Fixes: debbugs:7337
Diffstat (limited to 'lisp/time-stamp.el')
-rw-r--r-- | lisp/time-stamp.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/time-stamp.el b/lisp/time-stamp.el index 59340583997..fda8cd1438d 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 |