diff options
author | danny <danny@FreeBSD.org> | 1999-01-17 08:38:03 +0800 |
---|---|---|
committer | danny <danny@FreeBSD.org> | 1999-01-17 08:38:03 +0800 |
commit | 76fdc01f7d341f69ebdf08fbe9058c3421300343 (patch) | |
tree | 3eeba6e6b61038529964267fb593727ab0f726f7 | |
parent | 695d2621a7e63ffca3286614c43fae73c1737c12 (diff) | |
download | freebsd-ports-gnome-76fdc01f7d341f69ebdf08fbe9058c3421300343.tar.gz freebsd-ports-gnome-76fdc01f7d341f69ebdf08fbe9058c3421300343.tar.zst freebsd-ports-gnome-76fdc01f7d341f69ebdf08fbe9058c3421300343.zip |
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.
-rwxr-xr-x | CVSROOT/edithook | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CVSROOT/edithook b/CVSROOT/edithook index 900093025dcc..122c8314f1d5 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; } |