From owner-freebsd-stable Thu Jan 20 0:42:49 2000 Delivered-To: freebsd-stable@freebsd.org Received: from ns1.aktrad.ru (ns1.aktrad.ru [195.218.140.4]) by hub.freebsd.org (Postfix) with ESMTP id 8A9A4153B7 for ; Thu, 20 Jan 2000 00:42:24 -0800 (PST) (envelope-from hook@aktrad.ru) Received: from sloth (sloth.aktrad.ru [195.218.140.13]) by ns1.aktrad.ru (8.9.3/8.9.3) with SMTP id LAA29161 for ; Thu, 20 Jan 2000 11:42:11 +0300 (MSK) Message-ID: <04de01bf6322$417d45b0$0d8cdac3@aktrad.ru> From: "Gene Sokolov" To: Subject: possible invalid use of Zeller Conguence in libc/stdtime/localtime.c Date: Thu, 20 Jan 2000 11:42:00 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I got an impression that the parsing of daylight savings rules from TZ environment variable is off by one day. The manual on tzset() states that the M notation for rules assumes 0 for Sunday. The actual transtime() in localtime.c I believe assumes 0 for Saturday. Can someone please verify that. I checked 2.2.8 and 3.3 sources. The reason why this was not noticed before, I believe, is because most installations do not use TZ variable and those which do, have this bug manifest itself just twice per year on weekends. Gene Sokolov. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message