From owner-freebsd-bugs Wed Sep 27 17:00:03 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA19256 for bugs-outgoing; Wed, 27 Sep 1995 17:00:03 -0700 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA19243 ; Wed, 27 Sep 1995 17:00:01 -0700 Resent-Date: Wed, 27 Sep 1995 17:00:01 -0700 Resent-Message-Id: <199509280000.RAA19243@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, fenner@parc.xerox.com Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id QAA19107 for ; Wed, 27 Sep 1995 16:51:33 -0700 Received: from fenestro.parc.xerox.com ([13.0.208.199]) by alpha.xerox.com with SMTP id <15264(2)>; Wed, 27 Sep 1995 16:50:52 PDT Received: (from fenner@localhost) by fenestro.parc.xerox.com (8.6.12/8.6.9) id QAA10303; Wed, 27 Sep 1995 16:42:32 -0700 Message-Id: <199509272342.QAA10303@fenestro.parc.xerox.com> Date: Wed, 27 Sep 1995 16:42:32 PDT From: Bill Fenner Reply-To: fenner@parc.xerox.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/747: date(1) gives weird time zones and interprets GMT[+-] backwards Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 747 >Category: bin >Synopsis: date(1) gives weird time zones and interprets GMT[+-] backwards >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 27 17:00:01 PDT 1995 >Last-Modified: >Originator: Bill Fenner >Organization: Xerox PARC >Release: FreeBSD 2.1-STABLE i386 >Environment: 2.1-STABLE supped on September 22 >Description: "date" prints out strange time zones when you set the TZ environment variable, and unless I am in total outer space, interprets GMT+7 as it should GMT-7. >How-To-Repeat: % env TZ=GMT date Wed Sep 27 23:28:33 1995 Where did the time zone go? % env TZ=GMT-7 date Thu Sep 28 06:31:58 GMT 1995 Last I checked, Pacific time was GMT-7. However, this time is 14 hours ahead of now. Plus, the time zone that gets printed is "GMT" -- not GMT-7. % date Wed Sep 27 16:32:00 PDT 1995 This is now; in my time zone, I feel safe here. % env TZ=GMT+7 date Wed Sep 27 16:32:06 GMT 1995 And if I check what the time is supposed to be in GMT+7, it turns out to be the same as Pacific time, even though we are GMT-7. The same commands when run under SunOS provide the following output: % env TZ=GMT date Wed Sep 27 23:38:25 GMT 1995 % env TZ=GMT-7 date Wed Sep 27 16:38:27 GMT-0700 1995 % date Wed Sep 27 16:38:29 PDT 1995 % env TZ=GMT+7 date Thu Sep 28 06:38:32 GMT+0700 1995 >Fix: >Audit-Trail: >Unformatted: