[bis] Fixed timedate to 'Europe/Paris'
This commit is contained in:
parent
1bb7dc11d2
commit
f98367d07d
|
@ -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);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue