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

  1. clear environment caches
  2. upload plain test.php file var_dump(new \datetime()). correct time dumped in environments, symfony-specific


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -