소스 검색

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(