From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31619 invoked by alias); 30 Mar 2011 16:21:48 -0000 Received: (qmail 31564 invoked by uid 22791); 30 Mar 2011 16:21:42 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Mar 2011 16:21:36 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4y9G-0002re-QT for cygwin@cygwin.com; Wed, 30 Mar 2011 18:21:34 +0200 Received: from nat.scz.novell.com ([213.151.88.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2011 18:21:34 +0200 Received: from thorsten by nat.scz.novell.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2011 18:21:34 +0200 To: cygwin@cygwin.com From: Thorsten Kampe Subject: Re: Resetting time via time server doesn't affect cygwin 'date' Date: Wed, 30 Mar 2011 17:26:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/3.0.4 X-IsSubscribed: yes 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-03/txt/msg00839.txt.bz2 * Henry S. Thompson (Wed, 30 Mar 2011 14:10:37 +0100) > I'm running 1.7.9-1 on my 64-bit Windows 7 laptop. I recently noticed > that my box was 15 seconds adrift from my Linux desktop. After some > minor hassles, I was able to use Clock/Date and Time/Internet > Time/Change Settings/Update now to sync with a local ntp server, the > same one my desktop is using. At this point the Windows clock on the > laptop and my desktop were in sync, but 'date' from a bash window was > _still_ 15 seconds out. > > Is this a pervasive problem (to test this yourself, just use the > Windows UI to set your clock forward a minute, test the 'date' (it > should be as per Windows clock), then use the above path to resync > with a time server, and observe that 'date' is _not_ adjusted back), > or particular to Windows 7/Cygwin 1.7.9? I just tested it: I set the time manually back five minutes via the the control panel > Date and Time. The time change was reflected in a Cmd window ("time /t") while a "date" in bash still showed the "old" time (+ 5min). Where does the bash date gets the time from?! Thorsten -- 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