From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19378 invoked by alias); 10 Jun 2011 14:30:21 -0000 Received: (qmail 19309 invoked by uid 22791); 10 Jun 2011 14:30:19 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_YG,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from nm3-vm0.bullet.mail.sp2.yahoo.com (HELO nm3-vm0.bullet.mail.sp2.yahoo.com) (98.139.90.230) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 10 Jun 2011 14:30:04 +0000 Received: from [98.139.91.66] by nm3.bullet.mail.sp2.yahoo.com with NNFMP; 10 Jun 2011 14:30:04 -0000 Received: from [208.71.42.212] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 10 Jun 2011 14:30:04 -0000 Received: from [127.0.0.1] by smtp223.mail.gq1.yahoo.com with NNFMP; 10 Jun 2011 14:30:04 -0000 Received: from cgf.cx (cgf@108.49.32.211 with login) by smtp223.mail.gq1.yahoo.com with SMTP; 10 Jun 2011 07:30:03 -0700 PDT X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 81C9342804E for ; Fri, 10 Jun 2011 10:21:27 -0400 (EDT) Date: Fri, 10 Jun 2011 14:30:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: cygcheck's understanding of TZ Message-ID: <20110610142124.GA5849@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E1EF031-A2E0-4238-BD23-5089E2D7670F@free.fr> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00104.txt.bz2 On Fri, Jun 10, 2011 at 09:24:45AM +0200, Denis Excoffier wrote: > >On 2011-06-09 23:06, Christopher Faylor wrote: > >> We're not changing anything. Having the date there is useful. > >I (OP) need to use TZ=Europe/Monaco (or similar, or >with an absolute name) to make my applications work, >including date(1). > >Currently the `Current System Time' line is: >- incorrect at least in my (legitimate) use of TZ, >- not fully adequate for reference purposes since > it does not specify the time zone. > >It therefore deserves improvement. > >But since it seems difficult to make it correct due to specific >constraints (windows program), feel free not to modify it. Users like >me will have to 'export TZ=UTC' before 'cygcheck -s'. Not difficult. When I said the date was useful I was obviously referring to it being useful in the context for which "cygcheck -s" is used - reporting configuration info to the cygwin mailing list. That's why "cygcheck -s" exists. In that context, knowing, generally, when the command was run on the reporter's system is useful. >Or change cygcheck's specification for the better: use >UTC date instead, since printing UTC date does not >depend/rely on TZ: >Current System Time (UTC): Thu Jun 09 07:07:14 2011 > >>Again: you shouldn't use "cygcheck -s" as a method to find the system >>date. > >Sorry, next time i'll use 'alias foobar' instead of 'alias cygdate'. Actually an alias does nothing to illustrate this issue. Just cutting and pasting the output from cygcheck -s would have been enough to show what you're talking about. Unless you are reporting a problem with aliases, providing an alias implies that you actually intend to use the alias for some purpose. 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. If you don't want to provide a patch then you could also investigate modifying the cygcheck output via sed to match what you require. cgf -- 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