Date: Fri, 18 Sep 1998 16:02:13 -0600 (MDT) From: gnat@frii.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/7982: date y2k problem Message-ID: <199809182202.QAA00641@prometheus.frii.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809182202.QAA00641>
