From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15830 invoked from network); 30 Aug 2023 15:03:45 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 30 Aug 2023 15:03:45 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 321F040FE1; Thu, 31 Aug 2023 01:03:40 +1000 (AEST) Received: from mail.ultimate.com (mail.ultimate.com [IPv6:2607:fc50:0:15::100]) by minnie.tuhs.org (Postfix) with ESMTPS id 29256409B7 for ; Thu, 31 Aug 2023 01:03:34 +1000 (AEST) Received: from ultimate.com (localhost [127.0.0.1]) by mail.ultimate.com (8.17.1/8.17.1) with ESMTPS id 37UF3WVD074682 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 30 Aug 2023 11:03:32 -0400 (EDT) (envelope-from phil@ultimate.com) Received: (from phil@localhost) by ultimate.com (8.17.1/8.17.1/Submit) id 37UF3WhK074681 for tuhs@tuhs.org; Wed, 30 Aug 2023 11:03:32 -0400 (EDT) (envelope-from phil) From: Phil Budne Message-Id: <202308301503.37UF3WhK074681@ultimate.com> Date: Wed, 30 Aug 2023 11:03:32 -0400 To: tuhs@tuhs.org References: <202308282303.37SN3FVJ034316@ultimate.com> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID-Hash: J6ENMNIUTXW2JZRQJ4NM6WQPRDKEXVF4 X-Message-ID-Hash: J6ENMNIUTXW2JZRQJ4NM6WQPRDKEXVF4 X-MailFrom: phil@ultimate.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: 3bsd tape image List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: KenUnix wrote: > Got a question. With 3BSD I have been unable to find where the time > zone is set. I have looked at date.c, time.h and timebuf.h. In the > meantime I fixed date.c to handle Y2K dates. Same as v7, in /usr/src/sys/h/param.h (kernel rebuild required): #define TIMEZONE (8*60) /* Minutes westward from Greenwich */ #define DSTFLAG 1 /* Daylight Saving Time applies in this locality */ libc has the same limitations as v7: /usr/src/libc/gen/timezone.c timezone function (used by date) knows only a subset of US zone names, plus GMT. /usr/src/libc/gen/ctime.c has hardwired knowledge of DST change dates