This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: TZ not working


Noel L Yap [yap_noel@jpmorgan.com]

> I've installed cygwin-1.1.2 and now all dates are displayed as UTC.
Setting
> TZ=US/Eastern or TZ=EST or TZ=EDT doesn't work.  How are timezones
described in
> Cygwin?

I believe the same as most Unix systems.  If I recall correctly, the strings
in the TZ setting (e.g., "EST") never really have any material impact on the
time, but exist only for presentation.  It's the numeric offset embedded in
the value that is key.  So you should fine it works with "TZ=EST5" or
"TZ=EST5EDT" (the most appropriate for Eastern).

At least on my system, without any setting Cygwin is also using my local NT
setting.  So if your machine itself has the proper local time you can
probably drop TZ altogether.  But if you set it to anything (e.g., your
"EST") then it is obeyed, and in the case of "EST" there is no offset, so
it's equivalent to "EST0" which is UTC time-wise.

-- David

/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l@fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]