From: Chuck Hagenbuch Date: Tue, 2 Jun 2009 14:53:20 +0000 (+0000) Subject: Use Horde_Date_Utils X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=92759cd7251c80bc559a7a8599b7eb487afb52b5;p=horde.git Use Horde_Date_Utils --- diff --git a/lib/Form/SearchCDR.php b/lib/Form/SearchCDR.php index 4ab29ecf3..73421943b 100644 --- a/lib/Form/SearchCDR.php +++ b/lib/Form/SearchCDR.php @@ -2,7 +2,7 @@ /** * SearchCDRForm Class * - * $Horde: incubator/operator/lib/Form/SearchCDR.php,v 1.6 2008/07/06 18:21:50 bklang Exp $ + * $Horde: incubator/operator/lib/Form/SearchCDR.php,v 1.7 2009/06/02 14:53:20 chuck Exp $ * * Copyright 2008 Alkaloid Networks LLC * @@ -22,7 +22,7 @@ class SearchCDRForm extends Horde_Form { parent::Horde_Form($vars, $title); // FIXME: Generate a list of clients from Turba? - //$clients = + //$clients = $now = time(); if (!$vars->exists('startdate')) { @@ -40,7 +40,7 @@ class SearchCDRForm extends Horde_Form { // Default to the end of the previous calendar month $month = date('n', $now) - 1; $year = date('Y', $now); - $lastday = Horde_Date::daysInMonth($month, $year); + $lastday = Horde_Date_Utils::daysInMonth($month, $year); $enddate = array('day' => $lastday, 'month' => $month, 'year' => $year,