Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcbce77
)
Fixed time stamp bug
author
amrutjoshi
<amrutjoshi>
Sat, 23 Nov 2002 08:00:36 +0000
(08:00 +0000)
committer
amrutjoshi
<amrutjoshi>
Sat, 23 Nov 2002 08:00:36 +0000
(08:00 +0000)
lustre/scripts/version_tag.pl
patch
|
blob
|
history
diff --git
a/lustre/scripts/version_tag.pl
b/lustre/scripts/version_tag.pl
index
24e8c48
..
f74ac27
100644
(file)
--- 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.