[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TZ ignored by (display-time)
From: |
James Cloos |
Subject: |
Re: TZ ignored by (display-time) |
Date: |
Fri, 14 Mar 2008 17:26:32 -0400 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
>>>>> "Jason" == Jason Rumney <address@hidden> 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 <address@hidden> OpenPGP: 1024D/ED7DAEA6