Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/RRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ public function occursOn($date)
*/
public function occursAt($date)
{
$date = self::parseDate($date);
$date = self::parseDate($date)->setTimezone($this->dtstart->getTimezone());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will create problems because you are overriding the timezone if one was provided. You should only set the timezone only if $date does not already contain a timezone.


if ( in_array($date, $this->cache) ) {
// in the cache (whether cache is complete or not)
Expand Down