From 37e11a631937986f03f6216655ea1c964f7286aa Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 8 Aug 2011 11:53:35 -0400 Subject: 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 --- lisp/vc/add-log.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/vc/add-log.el') 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 ">")) -- cgit v1.2.1