summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-01-18 09:32:53 +0000
committerivan <ivan>2011-01-18 09:32:53 +0000
commit58e45a95531440f9f2d5ae236fbae05795098a39 (patch)
tree44a850c3ccbc1f3a6c430da5d475fcf088a60495
parent921b975ac6e2984c8696c1d8ba47d332a39160bf (diff)
fix RTx Statistics years for 2011
-rwxr-xr-xrt/lib/RTx/Statistics.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/rt/lib/RTx/Statistics.pm b/rt/lib/RTx/Statistics.pm
index 8b9d6e4f0..95cd706c1 100755
--- a/rt/lib/RTx/Statistics.pm
+++ b/rt/lib/RTx/Statistics.pm
@@ -59,7 +59,8 @@ $TimeToResolveGraphQueue = "General";
$secsPerDay = 86400;
# List of years and months to populate drop down lists
-@years =('2010', '2009', '2008', '2007', '2006', '2005', '2004', '2003' ,'2003' ,'2002');
+my @lt = localtime;
+@years = reverse( 2002 .. ($lt[5]+1900) );
@months=qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/;
%monthsMaxDay = (
0 => 31, # January