1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

use timezone of event

This commit is contained in:
Daniel Waxweiler
2025-05-26 09:58:54 +02:00
parent 77485b3010
commit 9662e1f333
12 changed files with 22 additions and 57 deletions

View File

@@ -1,15 +0,0 @@
<?php
namespace MobilizonConnector;
final class LocalDateTime {
private $dateTime;
public function __construct(string $text, \DateTimeZone $timeZone) {
$date = new \DateTimeImmutable($text);
$this->dateTime = $date->setTimezone($timeZone);
}
public function getValue() {
return $this->dateTime;
}
}