X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRTx%2FStatistics.pm;h=95cd706c1e36d04984165900fdf5aecdde68b354;hb=a72a10f754f7465121d6137bb3dcee0a21ea6443;hp=8b9d6e4f0169b3c389e23899f63f76d5ed91fa4a;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git 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