mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
wip
This commit is contained in:
10
source/includes/LocalDateTimeFormatter.php
Normal file
10
source/includes/LocalDateTimeFormatter.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user