فهرست منبع

Force UTC on packagist

Jordi Boggiano 13 سال پیش
والد
کامیت
b94194b685
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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(