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

Revert "use timezone of event"

This reverts commit 9662e1f333.
This commit is contained in:
Daniel Waxweiler
2025-05-26 10:20:11 +02:00
parent 9662e1f333
commit be8fd96ee9
12 changed files with 57 additions and 22 deletions

View File

@ -0,0 +1,10 @@
<?php
namespace MobilizonConnector;
final class LocalDateTimeFormatter
{
public static function format(LocalDateTime $dateTime, string $format) {
$timestamp = $dateTime->getValue()->getTimestamp();
return date_i18n($format, $timestamp);
}
}