cvs: php4 /pear/Date Calc.php

From: Date: Tue, 21 Nov 2000 16:03:16 +0000
Subject: cvs: php4 /pear/Date Calc.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2720@lists.php.net to get a copy of this message
mohrt Tue Nov 21 08:03:16 2000 EDT Modified files: /php4/pear/Date Calc.php Log: fixed bug in getCalendarMonth Index: php4/pear/Date/Calc.php diff -u php4/pear/Date/Calc.php:1.7 php4/pear/Date/Calc.php:1.8 --- php4/pear/Date/Calc.php:1.7 Mon Nov 20 10:01:18 2000 +++ php4/pear/Date/Calc.php Tue Nov 21 08:03:16 2000 @@ -24,7 +24,7 @@ * * @access public * - * @version 1.2 + * @version 1.2.1 * @author Monte Ohrt <monte@ispi.net> */ @@ -804,7 +804,7 @@ if(empty($month)) $month = Date_Calc::dateNow("%m"); - return ceil((Date_Calc::daysInMonth($month,$year)+Date_Calc::firstOfMonthWeekday("01",$month,$year)-DATE_CALC_BEGIN_WEEKDAY)/7); + return ceil((Date_Calc::daysInMonth($month,$year)+Date_Calc::firstOfMonthWeekday($month,$year) - DATE_CALC_BEGIN_WEEKDAY)/7); } // end func weeksInMonth @@ -1056,7 +1056,7 @@ // date for the first row, first column of calendar month $curr_day = (Date_Calc::dateToDays("01",$month,$year) - - Date_Calc::firstOfMonthWeekday("01",$month,$year) + DATE_CALC_BEGIN_WEEKDAY); + - Date_Calc::firstOfMonthWeekday($month,$year) + DATE_CALC_BEGIN_WEEKDAY); // number of days in this month $daysInMonth = Date_Calc::daysInMonth($month,$year);

« previous php.cvs (#2720) next »