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 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: <20120127124827 DOT GA22449 AT calimero DOT vinschen DOT de> In-Reply-To: <20120127124827.GA22449@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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