From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Time zone problem in cygwin Date: Thu, 05 Feb 2009 09:47:00 -0500 Message-ID: <498AFBE4.2070906@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233845712 26314 80.91.229.12 (5 Feb 2009 14:55:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 14:55:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 15:56:26 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LV5eR-0000tQ-UL for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2009 15:56:25 +0100 Original-Received: from localhost ([127.0.0.1]:35868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV5d8-0003rb-Vl for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2009 09:55:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LV5Vc-0008Gv-6s for emacs-devel@gnu.org; Thu, 05 Feb 2009 09:47:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LV5Va-0008Fe-E3 for emacs-devel@gnu.org; Thu, 05 Feb 2009 09:47:15 -0500 Original-Received: from [199.232.76.173] (port=54313 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV5Va-0008FQ-6R for emacs-devel@gnu.org; Thu, 05 Feb 2009 09:47:14 -0500 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141]:62365 helo=authusersmtp.mail.cornell.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LV5VZ-0008Av-6H for emacs-devel@gnu.org; Thu, 05 Feb 2009 09:47:13 -0500 Original-Received: from [127.0.0.1] (cpe-67-241-20-9.twcny.res.rr.com [67.241.20.9]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id n15El52n024246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 5 Feb 2009 09:47:06 -0500 (EST) User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108791 Archived-At: I just built emacs 23 under cygwin from the cvs source of two days ago, and the time zone is off by 4 hours; display-time shows 1:30pm when the local time is 9:30am. This happens under both cygwin 1.5 and the (still experimental) cygwin 1.7. The problem does not occur in my build of emacs 22.3. I see in the archives that this problem was reported before: http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00532.html Eli Zaretskii replied and asked for the value of (format-time-string "%Y-%m-%d %T %z"). The OP never responded, but the answer for me is the following: emacs 23 incorrectly reports 2009-02-05 13:35:36 -0100, whereas emacs 22.3 correctly gives 2009-02-05 09:36:13 -0500 a few seconds later. One further detail: emacs 23 gives the right time if I set TZ=America/New_York prior to starting emacs; but my understanding is that it's not supposed to be necessary to set TZ. Ken