delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/10/06:59:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sat, 10 May 2003 12:59:17 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to sync cygwin time with windows system time?
Message-ID: <20030510105917.GF19367@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <001301c316d9$be5d84a0$0301a8c0 AT E888> <20030510072514 DOT GB19367 AT cygbert DOT vinschen DOT de> <200305101012 DOT h4AAC2H24542 AT mx1 DOT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <200305101012.h4AAC2H24542@mx1.redhat.com>
User-Agent: Mutt/1.4.1i

On Sat, May 10, 2003 at 11:25:48AM +0200, news AT garydjones DOT mailshell DOT com wrote:
> Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:
> > On Sat, May 10, 2003 at 02:51:35AM -0700, jklcom wrote:
> >> How do set the time in cygwin to sync up with windows system time?
> >
> > Uelp?  Cygwin time *is* Windows time.
> 
> Actually, no, its not (necessarily), sorry Corinna. Of course, it depends on
> $TZ, so if that environment variable is incorrectly set then the time will be
> 'wrong'. Setting $TZ correctly, or not setting it at all, fixes this. (What
> happens to programs which expect TZ if it is not explicitly set?)

Sic.  This has nothing to do with the clock...

> $ export TZ=WEDT
> 
> $ date
> Sat May 10 09:58:02 GMT 2003
> 
> (so presumably WEDT is not a correct setting for TZ, though that's kind of
> confusing given the first result in this sequence)

Try export TZ="WEST-1WEDT-2,M3.5.0/2,M10.5.0/3"

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019