Whamcloud - gitweb
Fixed time stamp bug
authoramrutjoshi <amrutjoshi>
Sat, 23 Nov 2002 08:00:36 +0000 (08:00 +0000)
committeramrutjoshi <amrutjoshi>
Sat, 23 Nov 2002 08:00:36 +0000 (08:00 +0000)
lustre/scripts/version_tag.pl

index 24e8c48..f74ac27 100644 (file)
@@ -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.