all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@f2s.com>
To: 14@emacsbugs.donarmstrong.com
Cc: "emacs-pretest-bug@gnu.org" <emacs-pretest-bug@gnu.org>
Subject: Re: TZ ignored by (display-time)
Date: Fri, 14 Mar 2008 17:09:57 +0000	[thread overview]
Message-ID: <47DAB165.9090300@f2s.com> (raw)

> (display-time) fails to take the contents of TZ into effect when
> formatting the time string.


The problem seems to be caused by the new display-time-world 
functionality, so this bug shouldn't affect Emacs 22.

When time.el is loaded, the following code clobbers the internal 
timezone setting:

(defcustom display-time-world-list

  ;; Determine if zoneinfo style timezones are supported by testing that

  ;; America/New York and Europe/London return different timezones.

  (let (gmt nyt)

    (set-time-zone-rule "America/New York")

    (setq nyt (format-time-string "%z"))

    (set-time-zone-rule "Europe/London")

    (setq gmt (format-time-string "%z"))

    (set-time-zone-rule nil)




According to the documentation for set-time-zone-rule, it should set the 
timezone back to the local timezone when the argument is nil. But it 
doesn't seem to take note of the TZ environment variable when it does this.





             reply	other threads:[~2008-03-14 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 17:09 Jason Rumney [this message]
2008-03-14 21:26 ` TZ ignored by (display-time) James Cloos
2008-03-14 23:54 ` Jason Rumney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47DAB165.9090300@f2s.com \
    --to=jasonr@f2s.com \
    --cc=14@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.