1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00
Files
connector-wordpress/source/includes/LocalDateTime.php
Daniel Waxweiler be8fd96ee9 Revert "use timezone of event"
This reverts commit 9662e1f333.
2025-05-26 10:20:11 +02:00

16 lines
324 B
PHP

<?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;
}
}