1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2025-04-07 22:53:48 +02:00

Update occursAt function to handle DateTime in different timezone

This commit is contained in:
gordonzhao 2016-03-22 16:16:52 +10:00
parent 0cf1540f85
commit 98f51863d9

View File

@ -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)