delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/27/09:55:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_SUB_MINUTES
X-Spam-Check-By: sourceware.org
Message-ID: <4F22BAB4.6040607@hones.org.uk>
Date: Fri, 27 Jan 2012 14:54:44 +0000
From: Cliff Hones <cliff AT hones DOT org DOT uk>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: date command shows time 20 minutes into future
References: <CAPJ9Yc_tZLi+4ba_0esNzwb5pgHKJvv3cky72g2vSd17udhgrg AT mail DOT gmail DOT com> <20120127124827 DOT GA22449 AT calimero DOT vinschen DOT de>
In-Reply-To: <20120127124827.GA22449@calimero.vinschen.de>
X-Spam-Score: -0.0 (/) (knockando.watchfront.net.uk)
X-Spam-Report: knockando.watchfront.net.uk has scanned this email for spam. Results:- T_RP_MATCHES_RCVD=-0.01 (total -0.0, current threshold 5.0)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 27/01/2012 12:48, Corinna Vinschen wrote:
> On Jan 27 10:50, David Balažic wrote:
>> Hi!
>>
>> I'm running an up to date version of cygwin (update a week ago or so)
>> on Windows XP Pro SP3.
>>
>> Today I noticed the date command prints the wrong time:
>>  - actual wall clock time: 10:47
>>  - date output: Fri Jan 27 11:07:38 CEST 2012
>>  - date -u: Fri Jan 27 10:08:01 UTC 2012
>>  - windows system time (as in systray) : 10:48
>>
>> Any clue?
> 
> I don't know where you get the CEST from, but other than that the time
> problem should be at least partially solved in the snapshots.  The
> difference from system time shouldn't become more than 40 ms.

I think the CEST comes from Windows. If you don't have TZ set,
I think Cygwin turns the timezone names Windows provides into
abbreviated names by taking the leading letters.

So Windows "Central European Standard Time" => CEST
and "Central European Daylight Time" => CEDT

I've never liked this - arguably Windows is wrong to use non-standard
naming for the timezones.  It's even worse for us in the UK - we get
GMTST and GMTDT - ugh.  [UK may be a little unusual, but perfectly
reasonable in using GMT and BST.]

You can see the Windows names in registry entry
  HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones

-- Cliff



--
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