cvs: php4 /pear/Date Calc.php
| From: | Monte Ohrt | Date: | Mon, 16 Oct 2000 00:19:37 +0000 |
| Subject: | cvs: php4 /pear/Date Calc.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2067@lists.php.net to get a copy of this message | ||
mohrt Sun Oct 15 17:19:37 2000 EDT
Modified files:
/php4/pear/Date Calc.php
Log:
fixed bug in N_weekday_of_month()
Index: php4/pear/Date/Calc.php
diff -u php4/pear/Date/Calc.php:1.1 php4/pear/Date/Calc.php:1.2
--- php4/pear/Date/Calc.php:1.1 Sat Oct 14 13:51:29 2000
+++ php4/pear/Date/Calc.php Sun Oct 15 17:19:37 2000
@@ -19,7 +19,7 @@
*
* @access public
*
- * @version 1.0.1
+ * @version 1.0.2
* @author Monte Ohrt <monte@ispi.net>
*/
@@ -1128,7 +1128,7 @@
* @param string format for returned date
*
* @access public
- * @version 1.0
+ * @version 1.0b
* @author Monte Ohrt <monte@ispi.net>
*
* @return string date in given format
@@ -1140,7 +1140,7 @@
$month = sprintf("%02d",$month);
$DOW1day = sprintf("%02d",(($occurance - 1) * 7 + 1));
- $DOW1 = $this->day_of_week($year.$month.$DOW1day);
+ $DOW1 = $this->day_of_week($year,$month,$DOW1day);
$wdate = ($occurance - 1) * 7 + 1 +
(7 + $day_of_week - $DOW1) % 7;