From 5c735233e1c4d38dad9b15bc82a5d76f9e46b433 Mon Sep 17 00:00:00 2001 From: amrutjoshi Date: Sat, 23 Nov 2002 08:00:36 +0000 Subject: [PATCH] Fixed time stamp bug --- lustre/scripts/version_tag.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/scripts/version_tag.pl b/lustre/scripts/version_tag.pl index 24e8c48..f74ac27 100644 --- a/lustre/scripts/version_tag.pl +++ b/lustre/scripts/version_tag.pl @@ -57,9 +57,12 @@ sub get_latest_mtime ($hours,$min,$sec)=split(":",$time[3]); ($mday, $mon, $year)=($time[2],$time[1], $time[4]); + $secs=0; $mon=$months{$mon}; - $secs=timelocal($sec,$min,$hours,$mday, + if($mon>0 && $mon<13){ + $secs=timelocal($sec,$min,$hours,$mday, $mon,$year); + } if($secs>$last_mtime){ $last_mtime=$secs; $show_last=$hours.$min.$sec. -- 1.8.3.1