From: amrutjoshi Date: Sat, 23 Nov 2002 08:00:36 +0000 (+0000) Subject: Fixed time stamp bug X-Git-Tag: v1_7_100~1^90~129 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5c735233e1c4d38dad9b15bc82a5d76f9e46b433;p=fs%2Flustre-release.git Fixed time stamp bug --- 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.