1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

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
This commit is contained in:
Chong Yidong 2011-08-08 11:53:35 -04:00
parent d56176114c
commit 37e11a6319
6 changed files with 52 additions and 34 deletions

View file

@ -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 ">"))