Skip to content
Snippets Groups Projects
Commit 3be60236 authored by Tim Steiner's avatar Tim Steiner
Browse files

Bug when viewing reports from short months on the last day(s) of longer months fixed.

parent d842717a
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,8 @@ class ReportsController extends Nmc_Controller_Action ...@@ -21,8 +21,8 @@ class ReportsController extends Nmc_Controller_Action
if ($year > 2000) { if ($year > 2000) {
$date = new Zend_Date(); $date = new Zend_Date();
$date->setYear($year); $date->setYear($year);
$date->setMonth($month);
$date->setDay(1); $date->setDay(1);
$date->setMonth($month);
$date->setHour(0); $date->setHour(0);
$date->setMinute(0); $date->setMinute(0);
$date->setSecond(0); $date->setSecond(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment