diff --git a/src/Response/Event/Event.php b/src/Response/Event/Event.php index 0e8d41c..ca68056 100644 --- a/src/Response/Event/Event.php +++ b/src/Response/Event/Event.php @@ -35,7 +35,7 @@ private function __construct( private Organizer $organizer, private TargetGroup $targetGroup, private Invitation $invitation, - private ?\DateTimeImmutable $startDate, + private ?string $meetingTime, private ?string $relatedWebsite, ) {} @@ -139,9 +139,7 @@ public static function fromResponseData(\stdClass $data): self $organizer, TargetGroup::fromScalar($data->indended_for), $invitation, - $data->start_date !== null - ? new \DateTimeImmutable($data->start_date) - : null, + $data->start_date, $_relatedWebsite, ); } @@ -231,9 +229,9 @@ public function getInvitation(): Invitation } - public function getStartDate(): ?\DateTimeImmutable + public function getMeetingTime(): ?string { - return $this->startDate; + return $this->meetingTime; }