delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/10/13:45:04

X-Recipient: archive-cygwin AT delorie DOT com
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
Message-Id: <1D852702-CB83-4DAA-A31A-D3F8A01E432A@free.fr>
From: Denis Excoffier <Denis DOT Excoffier AT free DOT fr>
To: cygwin AT cygwin DOT com
In-Reply-To: <20110610142124.GA5849@ednor.casa.cgf.cx>
Subject: Re: cygcheck's understanding of TZ
Mime-Version: 1.0 (Apple Message framework v936)
Date: Fri, 10 Jun 2011 19:44:29 +0200
References: <20110609094631 DOT 56364lzi64m7t4d3 AT messagerie DOT si DOT c-s DOT fr> <BANLkTinwkd50q5JdugNRO8wfQrJ00syD+w AT mail DOT gmail DOT com> <4DF10C13 DOT 3040208 AT cwilson DOT fastmail DOT fm> <BANLkTinBqCHvyRpgXpHcXD54ycPuGhrMcg AT mail DOT gmail DOT com> <811AA35F-E300-46E5-9FE3-EE7D5E58194B AT free DOT fr> <20110609210632 DOT GA1457 AT ednor DOT casa DOT cgf DOT cx> <4E1EF031-A2E0-4238-BD23-5089E2D7670F AT free DOT fr> <20110610142124 DOT GA5849 AT ednor DOT casa DOT cgf DOT cx>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019