[php-symfony2-Finder] Updated patch to set default timezone

Shawn Iwinski siwinski at fedoraproject.org
Sat Oct 20 18:43:01 UTC 2012


commit d5939113c150f2f174002814e4b0a4550a649615
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sat Oct 20 14:42:50 2012 -0400

    Updated patch to set default timezone

 ...ch => php-symfony2-Finder-tests-bootstrap.patch |    6 ++++--
 php-symfony2-Finder.spec                           |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests-bootstrap.patch b/php-symfony2-Finder-tests-bootstrap.patch
similarity index 83%
rename from tests-bootstrap.patch
rename to php-symfony2-Finder-tests-bootstrap.patch
index 822e3d9..b1ef71e 100644
--- a/tests-bootstrap.patch
+++ b/php-symfony2-Finder-tests-bootstrap.patch
@@ -1,8 +1,10 @@
 --- Symfony/Component/Finder/Tests/bootstrap.php	2012-09-20 03:42:09.000000000 -0400
-+++ Symfony/Component/Finder/Tests/bootstrap.php	2012-10-19 23:26:17.457777862 -0400
-@@ -10,9 +10,18 @@
++++ Symfony/Component/Finder/Tests/bootstrap.php	2012-10-20 14:34:00.221837022 -0400
+@@ -9,10 +9,20 @@
+  * file that was distributed with this source code.
   */
  
++date_default_timezone_set('UTC');
  spl_autoload_register(function ($class) {
 -    if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Finder')) {
 -        if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Finder')).'.php')) {
diff --git a/php-symfony2-Finder.spec b/php-symfony2-Finder.spec
index 73950b7..ca5b019 100644
--- a/php-symfony2-Finder.spec
+++ b/php-symfony2-Finder.spec
@@ -13,7 +13,7 @@ Group:            Development/Libraries
 License:          MIT
 URL:              http://symfony.com/doc/current/components/finder.html
 Source0:          http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
-Patch0:           tests-bootstrap.patch
+Patch0:           php-symfony2-Finder-tests-bootstrap.patch
 
 BuildArch:        noarch
 


More information about the scm-commits mailing list