projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
921b975
)
fix RTx Statistics years for 2011
author
ivan
<ivan>
Tue, 18 Jan 2011 09:32:53 +0000
(09:32 +0000)
committer
ivan
<ivan>
Tue, 18 Jan 2011 09:32:53 +0000
(09:32 +0000)
rt/lib/RTx/Statistics.pm
patch
|
blob
|
history
diff --git
a/rt/lib/RTx/Statistics.pm
b/rt/lib/RTx/Statistics.pm
index
8b9d6e4
..
95cd706
100755
(executable)
--- 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