From 76fdc01f7d341f69ebdf08fbe9058c3421300343 Mon Sep 17 00:00:00 2001 From: danny Date: Sun, 17 Jan 1999 00:38:03 +0000 Subject: Change date format from mm/dd/yy to yyyy/mm/dd PR: 9500 Reviewed by: freebsd-bugs@freebsd.org Submitted by: Peter Jeremy and me. --- CVSROOT/edithook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CVSROOT/edithook') diff --git a/CVSROOT/edithook b/CVSROOT/edithook index 9000930..122c831 100755 --- a/CVSROOT/edithook +++ b/CVSROOT/edithook @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $Id$ +# $Id: edithook,v 1.1 1995/03/28 07:57:13 pst Exp $ # # Perl filter to handle cvs editinfo preparation of log messge @@ -276,7 +276,7 @@ sub abort { sub create_timestamps { ($sec,$min,$hour,$mday,$mon,$year) = localtime; - $today = sprintf("%02d/%02d/%02d", $mon+1, $mday, $year); + $today = sprintf("%d/%02d/%02d", $year+1900, $mon+1, $mday); $nowtime = sprintf("%02d:%02d:%02d", $hour, $min, $sec); $date = $today . ' ' . $nowtime; } -- cgit v1.1