[bis] Fixed timedate to 'Europe/Paris'

This commit is contained in:
xdrm-brackets 2017-07-24 19:10:33 +02:00
parent 1bb7dc11d2
commit f98367d07d
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,6 @@
=========================================================*/ =========================================================*/
$loader = new \Twig_Loader_Filesystem(__BUILD__.'/viewer/view'); $loader = new \Twig_Loader_Filesystem(__BUILD__.'/viewer/view');
$twig = new \Twig_Environment($loader, []); $twig = new \Twig_Environment($loader, []);
$twig->getExtension('Twig_Extension_Core')->setTimezone('Europe/Paris');
/* [2] Store variables /* [2] Store variables
@ -39,6 +38,7 @@
$twig->addFilter(new \Twig_Filter('f_tsformat', function($ts){ $twig->addFilter(new \Twig_Filter('f_tsformat', function($ts){
date_default_timezone_set('Europe/Paris');
return date('d/m/Y H:i:s', $ts); return date('d/m/Y H:i:s', $ts);
})); }));