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



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

Cygwin's localtime() can understand zoneinfo style (TZ=US/Eastern)
timezones provided you have the zoneinfo database.  The latest
code/data can be found at:

	ftp://elsie.nci.nih.gov/pub/tzcode2000d.tar.gz
	ftp://elsie.nci.nih.gov/pub/tzdata2000d.tar.gz

Unpack both of these in the same directory.  Apply the attached
patch (you'll probably want to change the default LOCALTIME in
the Makefile to your local timezone, or change it later with
/usr/local/etc/zic -l US/Eastern).  Then, "make INSTALL".

The date command (from shellutils) does not display the timezone
(from tzset()/tzname[]) because newlib's strftime() does not
implement %Z.  However, the tzcode package includes a date/strftime
that works better in this respect.  If this is what you want, you
can move the default /bin/date.exe aside.

Hope this helps.

Eric Fifer

tz.patch

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