From: Ben Klang Date: Sun, 10 Jan 2010 19:21:47 +0000 (-0500) Subject: Operator: Fix start month in search form X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8f4374d49ab7686b1bf7bca7a291a42b5dc637ef;p=horde.git Operator: Fix start month in search form --- 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;