[PHP-CVS] cvs: php-src /ext/date/tests bug45529.phpt

2008-07-23 Thread Antony Dovgal
tony2001Wed Jul 23 09:49:11 2008 UTC

  Modified files:  
/php-src/ext/date/tests bug45529.phpt 
  Log:
  fix test
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/bug45529.phpt?r1=1.3r2=1.4diff_format=u
Index: php-src/ext/date/tests/bug45529.phpt
diff -u php-src/ext/date/tests/bug45529.phpt:1.3 
php-src/ext/date/tests/bug45529.phpt:1.4
--- php-src/ext/date/tests/bug45529.phpt:1.3Mon Jul 21 07:27:16 2008
+++ php-src/ext/date/tests/bug45529.phptWed Jul 23 09:49:11 2008
@@ -1,7 +1,7 @@
 --TEST--
 Bug #45529 (UTC not properly recognised as timezone identifier while parsing)
 --INI--
-date.default_timezone=Europe/Oslo
+date.timezone=Europe/Oslo
 --FILE--
 ?php
 $tz1 = new DateTimeZone('UTC');



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/date/tests bug45529.phpt

2008-07-21 Thread Derick Rethans
derick  Mon Jul 21 07:27:16 2008 UTC

  Modified files:  
/php-src/ext/date/tests bug45529.phpt 
  Log:
  - Fixed test.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/bug45529.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/date/tests/bug45529.phpt
diff -u php-src/ext/date/tests/bug45529.phpt:1.2 
php-src/ext/date/tests/bug45529.phpt:1.3
--- php-src/ext/date/tests/bug45529.phpt:1.2Wed Jul 16 15:42:13 2008
+++ php-src/ext/date/tests/bug45529.phptMon Jul 21 07:27:16 2008
@@ -1,5 +1,7 @@
 --TEST--
 Bug #45529 (UTC not properly recognised as timezone identifier while parsing)
+--INI--
+date.default_timezone=Europe/Oslo
 --FILE--
 ?php
 $tz1 = new DateTimeZone('UTC');



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/date/tests bug45529.phpt

2008-07-16 Thread Derick Rethans
derick  Wed Jul 16 15:42:13 2008 UTC

  Modified files:  
/php-src/ext/date/tests bug45529.phpt 
  Log:
  - Added missing test-file.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/bug45529.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/date/tests/bug45529.phpt
diff -u /dev/null php-src/ext/date/tests/bug45529.phpt:1.2
--- /dev/null   Wed Jul 16 15:42:13 2008
+++ php-src/ext/date/tests/bug45529.phptWed Jul 16 15:42:13 2008
@@ -0,0 +1,20 @@
+--TEST--
+Bug #45529 (UTC not properly recognised as timezone identifier while parsing)
+--FILE--
+?php
+$tz1 = new DateTimeZone('UTC');
+$tz2 = date_create('UTC')-getTimeZone();
+echo $tz1-getName(), PHP_EOL;
+echo $tz2-getName(), PHP_EOL;
+$d = new DateTime('2008-01-01 12:00:00+0200');
+$d-setTimeZone($tz1);
+echo $d-format(DATE_ISO8601), PHP_EOL;
+$d = new DateTime('2008-01-01 12:00:00+0200');
+$d-setTimeZone($tz2);
+echo $d-format(DATE_ISO8601), PHP_EOL; 
+?
+--EXPECT--
+UTC
+UTC
+2008-01-01T10:00:00+
+2008-01-01T10:00:00+



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php