diff --git a/src/TwigExtension/ArcheTwigDateExtension.php b/src/TwigExtension/ArcheTwigDateExtension.php index bf00112..d3cbb2e 100644 --- a/src/TwigExtension/ArcheTwigDateExtension.php +++ b/src/TwigExtension/ArcheTwigDateExtension.php @@ -30,7 +30,7 @@ public function getName() private function checkYearIsMoreThanFourDigit($value): bool { - $explode = explode("-", $value); + $explode = explode("-", $value); if (strlen($explode[0]) > 4) { return true; } @@ -45,10 +45,10 @@ private function checkYearIsMoreThanFourDigit($value): bool * @return string */ private function returnFormattedDate($dateformat, $value, $lang): string - { + { $cal = \IntlCalendar::fromDateTime($value." Europe/Vienna"); - if($cal === null ) { + if ($cal === null) { return ""; }