Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 1995 08:36:58 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        pete@gatekeeper.ent-img.com (Pete Carah)
Cc:        bugs@FreeBSD.org
Subject:   Re: timezone problems
Message-ID:  <199505060636.IAA29861@uriah.heep.sax.de>
In-Reply-To: <m0s7YI0-0004lZC@gatekeeper.ent-img.com> from "Pete Carah" at May 5, 95 06:04:10 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Pete Carah wrote:
> 
> I figured out what I did to cause my seg faults, but it might be
> nice if zoneinfo and family was a bit more forgiving of bad
> zoneinfo files...  (I was setting TZ to "Pacific" which turned
> out to be a directory; this caused seg faults whenever trying
> to print a time :-(  Problem is fixed but some other reaction
> might be nice to non-experienced users.

Which system version?

j@uriah 337% date
Sat May  6 08:33:20 MET DST 1995
j@uriah 338% env TZ=DoEsNoTeXiSt date
Sat May  6 06:33:23  1995
j@uriah 339% env TZ=Pacific date
Sat May  6 06:33:29  1995
j@uriah 340% env TZ=.. date
Sat May  6 06:33:32  1995
j@uriah 341% env TZ=EDT date
Sat May  6 06:33:48  1995
j@uriah 342% env TZ=EST5EDT date
Sat May  6 02:34:14 EDT 1995

For any unreasonable value, it falls back to UTC, without displaying
a timezone name.

j@uriah 343% uname -a
FreeBSD uriah.heep.sax.de BUILT-19950429 FreeBSD BUILT-19950429 #20: Sat Apr 29 22:47:04 MET DST 1995     bin@uriah.heep.sax.de:/home/bin/sys/compile/URIAH  i386

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505060636.IAA29861>