summaryrefslogtreecommitdiffstats
path: root/RecurringType.php
diff options
context:
space:
mode:
Diffstat (limited to 'RecurringType.php')
-rw-r--r--RecurringType.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/RecurringType.php b/RecurringType.php
index eab57ee..bb82a3e 100644
--- a/RecurringType.php
+++ b/RecurringType.php
@@ -285,6 +285,10 @@ class RecurringType {
$date->setDate($recStartDetails["year"], $recStartDetails["month"] + $delta * $step, $recStartDetails["day"]);
$recurringInterval["start_date_stamp"] = $date->getTimestamp();
+ $weekNumber = $this->getWeekNumberValue();
+ if ($weekNumber)
+ $recurringInterval["start_date_stamp"] =
+ $this->_getDayOnWeek($recurringInterval["start_date_stamp"], $this->getWeekDayValue(), $weekNumber);
}
}