From 08efeb1fc900823befa0b1038d0a2603735b485a Mon Sep 17 00:00:00 2001 From: Alex Garel Date: Tue, 8 Nov 2011 17:57:26 +0100 Subject: [PATCH] fixing month index error in reports month has to span from 0 to 11 not 1 to 12 --- helpdesk/views/staff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index bc80f60a..418e0f91 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -833,7 +833,7 @@ def run_report(request, report): month = 1 if (year > last_year) or (month > last_month and year >= last_year): working = False - periods.append("%s %s" % (months[month], year)) + periods.append("%s %s" % (months[month - 1], year)) if report == 'userpriority': title = _('User by Priority')