[Pkg-owncloud-commits] [php-sabre-vobject] 14/128: Work around hhvm not being able to modify a date with 'first day of this month'
David Prévot
taffit at moszumanska.debian.org
Tue May 20 23:10:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 217c08041e3208491e5ae2af0f69f1be074c986f
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Dec 31 17:50:52 2013 +0100
Work around hhvm not being able to modify a date with 'first day of this month'
see https://github.com/facebook/hhvm/issues/1469
---
lib/Sabre/VObject/RecurrenceIterator.php | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/Sabre/VObject/RecurrenceIterator.php b/lib/Sabre/VObject/RecurrenceIterator.php
index 011cca7..6a267cc 100644
--- a/lib/Sabre/VObject/RecurrenceIterator.php
+++ b/lib/Sabre/VObject/RecurrenceIterator.php
@@ -1039,8 +1039,7 @@ class RecurrenceIterator implements \Iterator {
// all wednesdays in this month.
$dayHits = array();
- $checkDate = clone $startDate;
- $checkDate->modify('first day of this month');
+ $checkDate = new \DateTime($startDate->format('Y-m-1'));
$checkDate->modify($dayName);
do {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list