[Pkg-owncloud-commits] [php-sabre-vobject] 37/128: hhvm should now be compatible.
David Prévot
taffit at moszumanska.debian.org
Tue May 20 23:11:00 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 2d1c6e81a3c2642583b22276c777bfc3f331521b
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Wed Jan 22 01:23:45 2014 -0500
hhvm should now be compatible.
---
lib/Sabre/VObject/RecurrenceIterator.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/Sabre/VObject/RecurrenceIterator.php b/lib/Sabre/VObject/RecurrenceIterator.php
index 9fe7ec5..8a3a1b1 100644
--- a/lib/Sabre/VObject/RecurrenceIterator.php
+++ b/lib/Sabre/VObject/RecurrenceIterator.php
@@ -898,7 +898,12 @@ class RecurrenceIterator implements \Iterator {
// If we made it all the way here, it means there were no
// valid occurrences, and we need to advance to the next
// month.
- $this->currentDate->modify('first day of this month');
+ //
+ // This line does not currently work in hhvm. Temporary workaround
+ // follows:
+ // $this->currentDate->modify('first day of this month');
+ $this->currentDate = new \DateTime($this->currentDate->format('Y-m-1'));
+ // end of workaround
$this->currentDate->modify('+ ' . $this->interval . ' months');
// This goes to 0 because we need to start counting at hte
--
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