From 3be60236a04b889927a627f098a40b94f35276fe Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Mon, 31 Mar 2008 15:30:42 +0000
Subject: [PATCH] Bug when viewing reports from short months on the last day(s)
 of longer months fixed.

---
 application/controllers/ReportsController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/controllers/ReportsController.php b/application/controllers/ReportsController.php
index 0411b9dc..e276f010 100644
--- a/application/controllers/ReportsController.php
+++ b/application/controllers/ReportsController.php
@@ -21,8 +21,8 @@ class ReportsController extends Nmc_Controller_Action
         if ($year > 2000) {
             $date = new Zend_Date();
             $date->setYear($year);
-            $date->setMonth($month);
             $date->setDay(1);
+            $date->setMonth($month);
             $date->setHour(0);
             $date->setMinute(0);
             $date->setSecond(0);
-- 
GitLab