From owner-freebsd-bugs Fri Sep 18 15:10:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA13156 for freebsd-bugs-outgoing; Fri, 18 Sep 1998 15:10:39 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA13096 for ; Fri, 18 Sep 1998 15:10:25 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA03171; Fri, 18 Sep 1998 15:10:01 -0700 (PDT) Received: from prometheus.frii.com (prometheus.frii.com [208.146.240.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA11026 for ; Fri, 18 Sep 1998 15:03:03 -0700 (PDT) (envelope-from gnat@prometheus.frii.com) Received: (from gnat@localhost) by prometheus.frii.com (8.8.8/8.8.8) id QAA00641; Fri, 18 Sep 1998 16:02:13 -0600 (MDT) (envelope-from gnat) Message-Id: <199809182202.QAA00641@prometheus.frii.com> Date: Fri, 18 Sep 1998 16:02:13 -0600 (MDT) From: gnat@frii.com Reply-To: gnat@frii.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/7982: date y2k problem Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7982 >Category: bin >Synopsis: Default format for /bin/date to set date has 2 year digits >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 18 15:10:00 PDT 1998 >Last-Modified: >Originator: Nathan Torkington >Organization: Antipodeans, Unlimited. >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: 2.2.7-RELEASE >Description: When you set the date with /bin/date, it uses a default format to parse your date string that only has two year digits. This smells like a y2k problem. >How-To-Repeat: Set the date. :-) >Fix: Here's my drug-addled suggestion: Change the default logic. If you have 8 or fewer digits for the date (before the optional period and seconds value) then nothing needs to change. If you have 10, then it's a two-digit year and you'll have to decide on an interpretation (19xx or some hybrid based on the two digits). If you have 12, then it's a four-digit year and no interpretation is required. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message