# HG changeset patch # User Karl Heuer # Date 802550106 0 # Node ID ad9b385814fc4b38b6f539ce1d268d5084dc8fca # Parent 66bde18bb391b93434fec5ca6bceb36341c9fce8 (display-time-filter): Use same instant for both time and time-zone. diff -r 66bde18bb391 -r ad9b385814fc lisp/time.el --- a/lisp/time.el Tue Jun 06 22:23:32 1995 +0000 +++ b/lisp/time.el Wed Jun 07 18:35:06 1995 +0000 @@ -117,7 +117,8 @@ would give mode line times like `94/12/30 21:07:48 (UTC)'.") (defun display-time-filter (proc string) - (let* ((time (current-time-string)) + (let* ((now (current-time)) + (time (current-time-string now)) (load (condition-case () (if (zerop (car (load-average))) "" (let ((str (format " %03d" (car (load-average))))) @@ -149,7 +150,7 @@ (am-pm (if (>= hour 12) "pm" "am")) (minutes (substring time 14 16)) (seconds (substring time 17 19)) - (time-zone (car (cdr (current-time-zone)))) + (time-zone (car (cdr (current-time-zone now)))) (day (substring time 8 10)) (year (substring time 20 24)) (monthname (substring time 4 7))