From 8f4374d49ab7686b1bf7bca7a291a42b5dc637ef Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Sun, 10 Jan 2010 14:21:47 -0500 Subject: [PATCH] Operator: Fix start month in search form --- operator/lib/Form/SearchCDR.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/operator/lib/Form/SearchCDR.php b/operator/lib/Form/SearchCDR.php index e655f3b95..58ca31427 100644 --- a/operator/lib/Form/SearchCDR.php +++ b/operator/lib/Form/SearchCDR.php @@ -26,7 +26,7 @@ class SearchCDRForm extends Horde_Form { if (!$vars->exists('startdate')) { // Default to the beginning of the previous calendar month $startdate = array('day' => 1, - 'month' => date('n', $now) - 1, + 'month' => date('n', $now), 'year' => date('Y', $now), 'hour' => 0, 'minute' => 0, @@ -36,7 +36,7 @@ class SearchCDRForm extends Horde_Form { if (!$vars->exists('enddate')) { // Default to the end of the previous calendar month - $month = date('n', $now) - 1; + $month = date('n', $now); $year = date('Y', $now); $lastday = Horde_Date_Utils::daysInMonth($month, $year); $enddate = array('day' => $lastday, @@ -57,7 +57,7 @@ class SearchCDRForm extends Horde_Form { // Parameters for Horde_Form_datetime - $start_year = date('Y', $now) - 3; + $start_year = date('Y', $now) - 5; $end_year = ''; $picker = true; $format_in = null; -- 2.11.0