From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Timezone change in US Date: Wed, 14 Mar 2007 20:58:19 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1173898741 12554 80.91.229.12 (14 Mar 2007 18:59:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2007 18:59:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 19:58:50 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HRYgO-0005S5-5R for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2007 19:58:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRYhI-00046C-Jb for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2007 13:59:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HRYgh-0003xG-LD for help-gnu-emacs@gnu.org; Wed, 14 Mar 2007 14:59:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HRYgg-0003wZ-1S for help-gnu-emacs@gnu.org; Wed, 14 Mar 2007 14:59:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRYgf-0003wT-RA for help-gnu-emacs@gnu.org; Wed, 14 Mar 2007 13:59:01 -0500 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HRYfk-0006wk-JX for help-gnu-emacs@gnu.org; Wed, 14 Mar 2007 14:58:04 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-42-28.inter.net.il [84.228.42.28]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HJT33950 (AUTH halo1); Wed, 14 Mar 2007 20:57:59 +0200 (IST) In-reply-to: (message from Chris McMahan on Wed, 14 Mar 2007 07:49:31 -0500) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41970 Archived-At: > From: Chris McMahan > 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.