This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygcheck's understanding of TZ

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

Wrong by 1h is not pinpoint accuracy (i think). Here is a patch that describes what i mean:

--- ./cygwin-snapshot-20110608-1/winsup/utils/ 2011-04-07 08:09:28.000000000 +0200
+++ ./ 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)));

   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.


Denis Excoffier.

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]