Fixed view date not changing when updating the configuration

Resolves issue #255
This commit is contained in:
Chris Kankiewicz
2020-01-29 08:30:08 -07:00
parent 454f9401c3
commit dc7c623af7

View File

@@ -57,7 +57,7 @@ class TwigProvider
);
$twig->getEnvironment()->getExtension(CoreExtension::class)->setDateFormat(
$this->config->get('app.date_format', 'Y-m-d H:i:s'), '%d days'
$this->config->get('view.date_format', 'Y-m-d H:i:s'), '%d days'
);
foreach (self::VIEW_FUNCTIONS as $function) {