help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timezone change in US


From: Eli Zaretskii
Subject: Re: Timezone change in US
Date: Wed, 14 Mar 2007 20:58:19 +0200

> From: Chris McMahan <address@hidden>
> Date: Wed, 14 Mar 2007 07:49:31 -0500
> 
> I tried several variations. Interestingly, on following Eli's
> suggestion, I launched emacs directly from the windows environment
> (double-clicking on the runemacs icon) and the time was correct!

So tcsh does get in the way, somehow.

> I unset the TZ variable in tcsh. The shell reflected the old (pre DST)
> time, and so did emacs (no change in emacs). I set it to some odd
> value, the shell showed a time 4 hours into the future, but emacs
> still showed the pre DST time.
> 
> The short version here is that the TZ variable had no effect on emacs
> whatsoever.

I think that's because (as your other message tells) your tcsh is a
Cygwin program, while Emacs is a native Windows program.  So variables
exported by tcsh are not necessarily visible to Emacs.  What do you
see if you type "M-x getenv RET TZ RET" inside Emacs launched from
tcsh?

FWIW, if I set TZ=EST5EDT in the Windows Command Prompt window, then
run Emacs from the same command prompt, it behaves as if I lived in
the EST5EDT time zone (display-time shows time for that time zone),
and `getenv' shows the value of TZ that I set from the command prompt.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]