We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1987c5 commit 8fd1df9Copy full SHA for 8fd1df9
src/PatternLab/PatternEngine/Twig/TwigUtil.php
@@ -29,8 +29,8 @@ public static function loadDateFormats($instance) {
29
$dateFormat = Config::getOption("twigDefaultDateFormat");
30
$intervalFormat = Config::getOption("twigDefaultIntervalFormat");
31
32
- if ($dateFormat && $intervalFormat) {
33
- $instance->getExtension('core')->setDateFormat($dateFormat, $intervalFormat);
+ if ($dateFormat && $intervalFormat && !empty($dateFormat) && !empty($intervalFormat)) {
+ $instance->getExtension("core")->setDateFormat($dateFormat, $intervalFormat);
34
}
35
36
return $instance;
0 commit comments