[freeside-commits] freeside/rt/lib/RTx Statistics.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Tue Jan 18 01:32:54 PST 2011
Update of /home/cvs/cvsroot/freeside/rt/lib/RTx
In directory wavetail.420.am:/tmp/cvs-serv16945
Modified Files:
Statistics.pm
Log Message:
fix RTx Statistics years for 2011
Index: Statistics.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RTx/Statistics.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- Statistics.pm 20 Jun 2007 22:28:20 -0000 1.1
+++ Statistics.pm 18 Jan 2011 09:32:52 -0000 1.2
@@ -59,7 +59,8 @@
$secsPerDay = 86400;
# List of years and months to populate drop down lists
- at years =('2010', '2009', '2008', '2007', '2006', '2005', '2004', '2003' ,'2003' ,'2002');
+my @lt = localtime;
+ at years = reverse( 2002 .. ($lt[5]+1900) );
@months=qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/;
%monthsMaxDay = (
0 => 31, # January
More information about the freeside-commits
mailing list