Skip to content

Commit

Permalink
Don't reset start date to UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed May 12, 2023
1 parent 2299fae commit 2f2ab24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/RRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ public function jsonSerialize(): array

$start = $this->getStart();
if ($start) {
$data['start'] = (clone $start)
->setTimezone(new DateTimeZone('UTC'))
->format(static::SERIALIZED_DATETIME_FORMAT);
$data['start'] = $start->format(static::SERIALIZED_DATETIME_FORMAT);
}

return $data;
Expand Down

0 comments on commit 2f2ab24

Please sign in to comment.