remove timezone from calendar and calendar range

This commit is contained in:
2022-06-06 17:49:51 +02:00
parent dab9204ec7
commit dc22d18e6a
4 changed files with 91 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
private CommentEmbeddable $comment;
/**
* @ORM\Column(type="datetimetz_immutable")
* @ORM\Column(type="datetime_immutable", nullable=false)
* @Serializer\Groups({"calendar:read", "read"})
*/
private ?DateTimeImmutable $endDate = null;
@@ -169,7 +169,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
private ?bool $sendSMS;
/**
* @ORM\Column(type="datetimetz_immutable")
* @ORM\Column(type="datetime_immutable", nullable=false)
* @Serializer\Groups({"calendar:read", "read"})
*/
private ?DateTimeImmutable $startDate = null;
@@ -550,6 +550,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
public function setStartDate(DateTimeImmutable $startDate): self
{
dump('startDate', $startDate);
$this->startDate = $startDate;
return $this;