X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FEvent.php;h=ce2e9d53b2cc98b43a537bcb7db3e01af66dc209;hb=5e188d17f927b3d3061d3f86cf9b633bac1d2b43;hp=e5932e7c1d9cd43b3589a77b7757691f5b7af8e3;hpb=cb4ad529f465dcdb0e7efedc5ac4c06c63b8b194;p=friendica.git diff --git a/src/Model/Event.php b/src/Model/Event.php index e5932e7c1d..ce2e9d53b2 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -856,7 +856,7 @@ class Event ); $dtstart_title = DateTimeFormat::utc($item['event-start'], $item['event-adjust'] ? DateTimeFormat::ATOM : 'Y-m-d\TH:i:s'); // Format: Jan till Dec. - $month_short = L10n::getDayShort( + $month_short = DI::l10n()->getDayShort( $item['event-adjust'] ? DateTimeFormat::local($item['event-start'], 'M') : DateTimeFormat::utc($item['event-start'], 'M') @@ -868,7 +868,7 @@ class Event $start_time = $item['event-adjust'] ? DateTimeFormat::local($item['event-start'], $tformat) : DateTimeFormat::utc($item['event-start'], $tformat); - $start_short = L10n::getDayShort( + $start_short = DI::l10n()->getDayShort( $item['event-adjust'] ? DateTimeFormat::local($item['event-start'], $dformat_short) : DateTimeFormat::utc($item['event-start'], $dformat_short) @@ -883,7 +883,7 @@ class Event : DateTimeFormat::utc($item['event-finish'], $dformat) ); $dtend_title = DateTimeFormat::utc($item['event-finish'], $item['event-adjust'] ? DateTimeFormat::ATOM : 'Y-m-d\TH:i:s'); - $end_short = L10n::getDayShort( + $end_short = DI::l10n()->getDayShort( $item['event-adjust'] ? DateTimeFormat::local($item['event-finish'], $dformat_short) : DateTimeFormat::utc($item['event-finish'], $dformat_short)