summaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1999-01-17 00:38:03 +0000
committerdanny <danny@FreeBSD.org>1999-01-17 00:38:03 +0000
commit76fdc01f7d341f69ebdf08fbe9058c3421300343 (patch)
tree3eeba6e6b61038529964267fb593727ab0f726f7 /CVSROOT
parent695d2621a7e63ffca3286614c43fae73c1737c12 (diff)
downloadFreeBSD-ports-76fdc01f7d341f69ebdf08fbe9058c3421300343.zip
FreeBSD-ports-76fdc01f7d341f69ebdf08fbe9058c3421300343.tar.gz
Change date format from mm/dd/yy to yyyy/mm/dd
PR: 9500 Reviewed by: freebsd-bugs@freebsd.org Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> and me.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/edithook4
1 files changed, 2 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud