unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Jason Rumney <jasonr@f2s.com>
Cc: 14@emacsbugs.donarmstrong.com,
	"emacs-pretest-bug@gnu.org" <emacs-pretest-bug@gnu.org>
Subject: Re: TZ ignored by (display-time)
Date: Fri, 14 Mar 2008 17:26:32 -0400	[thread overview]
Message-ID: <m37ig59eu8.fsf@lugabout.jhcloos.org> (raw)
In-Reply-To: <47DAB165.9090300@f2s.com> (Jason Rumney's message of "Fri, 14 Mar 2008 17:09:57 +0000")

>>>>> "Jason" == Jason Rumney <jasonr@f2s.com> writes:

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

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

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

Cool.  Thanks for tracking it down.

Running (set-time-zone-rule (getenv "TZ")) does indeed cause
the (display-time) output to match the timezone specified by TZ.

I looked at the set-time-zone-rule DEFUN as well as set_time_zone_rule()
in src/editfns.c but am not sure how best to fix this....

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6




  reply	other threads:[~2008-03-14 21:26 UTC|newest]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m37ig59eu8.fsf@lugabout.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=14@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=jasonr@f2s.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).