diff options
author | git-marijus <mario@mariovavti.com> | 2018-03-23 10:25:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-23 10:25:58 +0100 |
commit | e2b9162a30f60ba74038c4aa999d31d5e9338d7c (patch) | |
tree | dce716a2a6955b0b43d6176daa75517982a65541 /vendor/sabre/vobject/lib/Recur | |
parent | eec4d9b5ad2ad3fbc4d5c5651fcccdc81b248af9 (diff) | |
parent | c80837a9e6a1d5049a03fbb608b2b650c1b0f92d (diff) | |
download | volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.tar.gz volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.tar.bz2 volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.zip |
Merge pull request #1010 from dawnbreak/dev
:arrow_up: Update libraries.
Diffstat (limited to 'vendor/sabre/vobject/lib/Recur')
-rw-r--r-- | vendor/sabre/vobject/lib/Recur/RRuleIterator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/sabre/vobject/lib/Recur/RRuleIterator.php b/vendor/sabre/vobject/lib/Recur/RRuleIterator.php index 20f34ef42..dbea1155d 100644 --- a/vendor/sabre/vobject/lib/Recur/RRuleIterator.php +++ b/vendor/sabre/vobject/lib/Recur/RRuleIterator.php @@ -592,11 +592,11 @@ class RRuleIterator implements Iterator { // loop through all YearDay and Days to check all the combinations foreach ($this->byYearDay as $byYearDay) { $date = clone $this->currentDate; - $date->setDate($currentYear, 1, 1); + $date = $date->setDate($currentYear, 1, 1); if ($byYearDay > 0) { - $date->add(new \DateInterval('P' . $byYearDay . 'D')); + $date = $date->add(new \DateInterval('P' . $byYearDay . 'D')); } else { - $date->sub(new \DateInterval('P' . abs($byYearDay) . 'D')); + $date = $date->sub(new \DateInterval('P' . abs($byYearDay) . 'D')); } if ($date > $this->currentDate && in_array($date->format('N'), $dayOffsets)) { |