summaryrefslogtreecommitdiff
path: root/lisp/vc/add-log.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-08-08 11:53:35 -0400
committerChong Yidong <cyd@stupidchicken.com>2011-08-08 11:53:35 -0400
commit37e11a631937986f03f6216655ea1c964f7286aa (patch)
tree0ea4917e2a3f3d1a71a9a77ec4d45fccf92a6754 /lisp/vc/add-log.el
parentd56176114c8c9226a43db4bf68df562486e454ed (diff)
downloademacs-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/vc/add-log.el')
-rw-r--r--lisp/vc/add-log.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el
index e5aead2309f..9170d7b9424 100644
--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -853,9 +853,9 @@ non-nil, otherwise in local time."
(let ((tz (getenv "TZ")))
(unwind-protect
(progn
- (set-time-zone-rule add-log-time-zone-rule)
+ (setenv "TZ" add-log-time-zone-rule)
(funcall add-log-time-format))
- (set-time-zone-rule tz)))
+ (setenv "TZ" tz)))
(funcall add-log-time-format))
" " full-name
" <" addr ">"))