X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0	tests=AWL,BAYES_50
X-Spam-Check-By: sourceware.org
Message-ID: <4BF312C3.4070909@hones.org.uk>
Date: Tue, 18 May 2010 23:20:51 +0100
From: Cliff Hones <cliff@hones.org.uk>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: timezone setting ?
References: <4BEF77E3.1020207@gmail.com> <2BF01EB27B56CC478AD6E5A0A28931F2F0229E@A1DAL1SWPES19MB.ams.acs-inc.net>
In-Reply-To: <2BF01EB27B56CC478AD6E5A0A28931F2F0229E@A1DAL1SWPES19MB.ams.acs-inc.net>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/) (dominator.watchfront.net.uk)
X-Spam-Report: dominator.watchfront.net.uk has scanned this email for spam. Results:-	TO_NO_BRKTS_DIRECT=0.001, T_RP_MATCHES_RCVD=-0.01 (total -0.0, current threshold 4.0)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Nellis, Kenneth wrote:

> You can set the time zone by setting environment variable
> TZ to a file path relative to /usr/share/zoneinfo, e.g.,
> 
> export TZ=America/New_York
> 
> I'm less clear on how it determines the time zone
> when TZ is not set. My guess is that TZ=posixrules
> is the default. Corrections are encouraged.

Well, around 5 years ago I looked into this, as I found that the
default timzone names used on UK installations were wrong.  Here's
what I posted back then:

  http://cygwin.com/ml/cygwin/2005-08/msg00126.html

Since then the zoneinfo implementation has been added, but it appears
that if you don't explicitly set TZ the default is still taken from
your Windows timezone setting, so I still get GMTST and GMTDT, which
are somewhat unconventional and confusing for UK users.  Needless to
say, a UK Linux installation correctly defaults to GMT and BST.

I suppose setup.exe could be trained to convert the windows timezone
into a sensible global TZ setting - or possibly it could just present
the timezone list for a manual choice, as most attended Linux installs
do.

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

