From 98f51863d9b09e028bbdb7b8844773f062dc3aa9 Mon Sep 17 00:00:00 2001 From: gordonzhao Date: Tue, 22 Mar 2016 16:16:52 +1000 Subject: [PATCH] Update occursAt function to handle DateTime in different timezone --- src/RRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RRule.php b/src/RRule.php index d4eddfc..80531f2 100755 --- a/src/RRule.php +++ b/src/RRule.php @@ -738,7 +738,7 @@ class RRule implements RRuleInterface */ public function occursAt($date) { - $date = self::parseDate($date); + $date = self::parseDate($date)->setTimezone($this->dtstart->getTimezone()); if ( in_array($date, $this->cache) ) { // in the cache (whether cache is complete or not)