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:
parent
0cf1540f85
commit
98f51863d9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user