1

I'm going mad because I spent the 3 last hours trying to modify Datetime on Symfony2 because new Datetime() return me an object with the time on the UTC format although a sample php file return me the Datetime on Europe/Paris format.

The TZ is set on all php.ini but still overrided by Symfony2.

Symfony 2.4.4 on PHP 5.5.12-1~dotdeb.1.

Any ideas?

  • I ran with this same issue, I solved doing [this](http://stackoverflow.com/a/23353707/453348) – tttony May 20 '14 at 01:23
  • All solutions in your thread didn't solved the problem. ( virtual host / AppKernel modifications ). Something is modifying my TZ beetween the AppKernel and my Controller action... – Thomas Cardonne May 20 '14 at 16:17
  • Fixed it with a savage solution : i added `date_default_timezone_set('Europe/Paris');` at the end of my Listener including IPBWI. – Thomas Cardonne May 20 '14 at 19:41

0 Answers0