From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20560 invoked by alias); 10 Jun 2011 17:44:56 -0000 Received: (qmail 20546 invoked by uid 22791); 10 Jun 2011 17:44:56 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_YG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from smtp4-g21.free.fr (HELO smtp4-g21.free.fr) (212.27.42.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Jun 2011 17:44:37 +0000 Received: from fts31-1-78-224-52-79.fbx.proxad.net (unknown [78.224.52.79]) by smtp4-g21.free.fr (Postfix) with ESMTP id DD8014C821D; Fri, 10 Jun 2011 19:44:30 +0200 (CEST) Message-Id: <1D852702-CB83-4DAA-A31A-D3F8A01E432A@free.fr> From: Denis Excoffier To: cygwin@cygwin.com In-Reply-To: <20110610142124.GA5849@ednor.casa.cgf.cx> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: Re: cygcheck's understanding of TZ Mime-Version: 1.0 (Apple Message framework v936) Date: Fri, 10 Jun 2011 17:44:00 -0000 References: <20110609094631.56364lzi64m7t4d3@messagerie.si.c-s.fr> <4DF10C13.3040208@cwilson.fastmail.fm> <811AA35F-E300-46E5-9FE3-EE7D5E58194B@free.fr> <20110609210632.GA1457@ednor.casa.cgf.cx> <4E1EF031-A2E0-4238-BD23-5089E2D7670F@free.fr> <20110610142124.GA5849@ednor.casa.cgf.cx> Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-06/txt/msg00107.txt.bz2 On 2011-06-10 16:21, Christopher Faylor wrote: > But, in any event, we still have no idea (since you haven't provided > details) why you find it so crucial for cygcheck to report the date > with > pinpoint accuracy but if this is required for your purposes then you > should "feel free" to provide a patch to cygcheck.cc. Wrong by 1h is not pinpoint accuracy (i think). Here is a patch that describes what i mean: --- ./cygwin-snapshot-20110608-1/winsup/utils/cygcheck.cc 2011-04-07 08:09:28.000000000 +0200 +++ ./cygwin-snapshot-20110608-1.new/winsup/utils/cygcheck.cc 2011-06-10 19:31:59.000000000 +0200 @@ -1398,7 +1398,9 @@ printf ("\nCygwin Configuration Diagnostics\n"); time (&now); - printf ("Current System Time: %s\n", ctime (&now)); + /* UTC is better than local time for reference purposes, and also does + not depend on TZ, which is problematic in certain cases under msvcrt.dll */ + printf ("Current System Time (UTC): %s\n", asctime (gmtime (&now))); OSVERSIONINFOEX osversion; osversion.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEX); Also to be considered similar patches for the other programs that don't link with cygwin1.dll, if necessary. Hope this helps. Regards. Denis Excoffier. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple