Skip to content

Commit

Permalink
Item9652: analyse.pl (script generating HallOfFame) wrongly thinks th…
Browse files Browse the repository at this point in the history
…e latest release is 1.1.4. Thanks Kip for heading me in the right direction

git-svn-id: http://svn.foswiki.org/trunk@14822 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed May 14, 2012
1 parent 23431f6 commit 3bea557
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/tools/develop/analyse.pl
Expand Up @@ -55,8 +55,11 @@
my $y = $d[5]; # current year

if ( $date =~ /(\S+)\s+(\d+)(?:\s+(\d+))?/ ) {
$date = Time::Local::timegm( 0, 0, 0, $2, $monthnames{ lc($1) },
$3 || $y );
$date = Time::Local::timegm(
0, 0, 0, $2,
$monthnames{ lc($1) },
$3 || ( $monthnames{ lc($1) } > $d[4] ? $y - 1 : $y )
);
}
else {
$date = 0;
Expand Down

0 comments on commit 3bea557

Please sign in to comment.