php - Symfony2.1 production environment uses other timezone as test -
the test , prod env of our sf2.1 application hosted on same server. sourcecode of them both similar, exception of custom config_<env>.yml
at first, dev , test environment had problem. solved environments following snipped, assumed should work prod environment.
class appkernel extends kernel { public function init() { date_default_timezone_set('europe/amsterdam'); setlocale(lc_all, 'nl_nl'); parent::init(); } other things tried
- clear environment caches
- upload plain test.php file var_dump(new \datetime()). correct time dumped in environments, symfony-specific
Comments
Post a Comment