From owner-freebsd-bugs Thu Jan 14 21:30:42 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA19881 for freebsd-bugs-outgoing; Thu, 14 Jan 1999 21:30:42 -0800 (PST) (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 VAA19832 for ; Thu, 14 Jan 1999 21:30:37 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA16799; Thu, 14 Jan 1999 21:30:01 -0800 (PST) Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA18773 for ; Thu, 14 Jan 1999 21:24:16 -0800 (PST) (envelope-from peter.jeremy@auss2.alcatel.com.au) Received: by border.alcanet.com.au id <40343>; Fri, 15 Jan 1999 16:22:02 +1100 Message-Id: <99Jan15.162202est.40343@border.alcanet.com.au> Date: Fri, 15 Jan 1999 16:22:39 +1100 From: Peter Jeremy Reply-To: peter.jeremy@alcatel.com.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/9500: `edithook' is not Y2K compliant Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 9500 >Category: misc >Synopsis: `edithook' is not Y2K compliant >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 14 21:30:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Peter Jeremy >Release: FreeBSD 3.0-CURRENT i386 >Organization: Alcatel Australia >Environment: >Description: The `edithook' script in the CVSROOT directory uses a raw tm_year and will therefore display 01/01/100 for 2000-JAN-01. >How-To-Repeat: Code inspection >Fix: --- /3.0/CVSROOT/edithook Tue Mar 28 17:57:13 1995 +++ ./edithook Fri Jan 15 14:46:37 1999 @@ -276,7 +276,7 @@ sub create_timestamps { ($sec,$min,$hour,$mday,$mon,$year) = localtime; - $today = sprintf("%02d/%02d/%02d", $mon+1, $mday, $year); + $today = sprintf("%02d/%02d/%04d", $mon+1, $mday, $year + 1900); $nowtime = sprintf("%02d:%02d:%02d", $hour, $min, $sec); $date = $today . ' ' . $nowtime; } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message