From 2f2ab24135d3bd1b5cdd4e26337088addf34a66c Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Fri, 12 May 2023 15:00:54 +0200 Subject: [PATCH] Don't reset start date to `UTC` --- src/RRule.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/RRule.php b/src/RRule.php index c5eb35d..d71e754 100644 --- a/src/RRule.php +++ b/src/RRule.php @@ -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;