From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Time zone problem in cygwin Date: Fri, 06 Feb 2009 17:29:39 +0100 Message-ID: <498C6573.6080506@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233940536 2884 80.91.229.12 (6 Feb 2009 17:15:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2009 17:15:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: kbrown@cornell.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 06 18:16:50 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 1LVUJs-0000A0-0r for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2009 18:16:48 +0100 Original-Received: from localhost ([127.0.0.1]:35596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVUIY-0007Is-Pl for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2009 12:15:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVTqf-0003Nc-92 for emacs-devel@gnu.org; Fri, 06 Feb 2009 11:46:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVTqd-0003Mn-7H for emacs-devel@gnu.org; Fri, 06 Feb 2009 11:46:36 -0500 Original-Received: from [199.232.76.173] (port=35394 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVTqd-0003Mh-1v for emacs-devel@gnu.org; Fri, 06 Feb 2009 11:46:35 -0500 Original-Received: from smtp-out26.alice.it ([85.33.2.26]:4935) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVTqc-0007BW-LP for emacs-devel@gnu.org; Fri, 06 Feb 2009 11:46:34 -0500 Original-Received: from FBCMMO01.fbc.local ([192.168.68.195]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Fri, 6 Feb 2009 17:46:21 +0100 Original-Received: from FBCMCL01B08.fbc.local ([192.168.171.46]) by FBCMMO01.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Feb 2009 17:36:04 +0100 Original-Received: from [82.57.168.146] ([82.57.168.146]) by FBCMCL01B08.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Feb 2009 17:26:09 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) X-OriginalArrivalTime: 06 Feb 2009 16:26:09.0218 (UTC) FILETIME=[9E206A20:01C98877] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:108827 Archived-At: Ken Brown wrote: > ...and the time zone is off by 4 hours Does it make any difference, if you build Emacs with/without this patch: ----------------- diff -Naur emacs.orig/src/strftime.c emacs/src/strftime.c --- emacs.orig/src/strftime.c 2007-01-14 04:24:37.000000000 +0100 +++ emacs/src/strftime.c 2008-11-27 09:42:03.109375000 +0100 @@ -54,7 +54,7 @@ # endif #endif #if HAVE_TZNAME -#ifndef USE_CRT_DLL +#if !defined (USE_CRT_DLL) && !defined (CYGWIN) extern char *tzname[]; #endif #endif ----------------- In my case (I build 'with') the difference is 2 hours: Emacs says that are 3.22 PM, instead they are 17:22. If Emacs has to print the Greenwich Time, then it should be 16.22 (but perhaps I haven't understood how time works...) Cheers, Angelo.