Explorar el Código

Force UTC on packagist

Jordi Boggiano hace 13 años
padre
commit
b94194b685
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 1 1
      web/app.php
  2. 2 0
      web/app_dev.php

+ 1 - 1
web/app.php

@@ -1,6 +1,6 @@
 <?php
 
-$_SERVER['REQUEST_URI'] = str_replace('//get', '/get', $_SERVER['REQUEST_URI']);
+ini_set('date.timezone', 'UTC');
 
 require_once __DIR__.'/../app/bootstrap.php.cache';
 require_once __DIR__.'/../app/AppKernel.php';

+ 2 - 0
web/app_dev.php

@@ -1,5 +1,7 @@
 <?php
 
+ini_set('date.timezone', 'UTC');
+
 // this check prevents access to debug front controllers that are deployed by accident to production servers.
 // feel free to remove this, extend it, or make something more sophisticated.
 if (!in_array(@$_SERVER['REMOTE_ADDR'], array(