com php-src: fix the failing date tests introduced with the latest timezonedb update Derick confirmed on irc that the new/current behavior is the
correct and that the tests should be updated to reflect it: ext/date/tests/bug20382-2.phpt ext/date/tests/bug33415-2.phpt ext/date/tests/bug33532.phpt

From: Date: Tue, 12 Aug 2014 08:34:54 +0000
Subject: com php-src: fix the failing date tests introduced with the latest timezonedb update Derick confirmed on irc that the new/current behavior is the
correct and that the tests should be updated to reflect it: ext/date/tests/bug20382-2.phpt ext/date/tests/bug33415-2.phpt ext/date/tests/bug33532.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-79809@lists.php.net to get a copy of this message
Commit: 39dd715382b6b2e0c19ff8edac7a185ded3721c9 Author: Ferenc Kovacs <tyrael@php.net> Tue, 12 Aug 2014 10:34:54 +0200 Parents: 84a4041ba47e92e7a0ba03938d0ebf88b5fcf6cf Branches: PHP-5.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=39dd715382b6b2e0c19ff8edac7a185ded3721c9 Log: fix the failing date tests introduced with the latest timezonedb update Derick confirmed on irc that the new/current behavior is the correct and that the tests should be updated to reflect it Changed paths: M ext/date/tests/bug20382-2.phpt M ext/date/tests/bug33415-2.phpt M ext/date/tests/bug33532.phpt Diff: diff --git a/ext/date/tests/bug20382-2.phpt b/ext/date/tests/bug20382-2.phpt index 5e07568..cc2d967 100644 --- a/ext/date/tests/bug20382-2.phpt +++ b/ext/date/tests/bug20382-2.phpt @@ -95,18 +95,18 @@ result = Monday 2037-10-05 00:00:00 NZDT wanted = Monday 00:00:00 Australia/Adelaide -ts = Friday 1971-01-01 17:17:17 CST -result = Monday 1971-01-04 00:00:00 CST +ts = Friday 1971-01-01 17:17:17 ACST +result = Monday 1971-01-04 00:00:00 ACST wanted = Monday 00:00:00 Australia/Darwin -ts = Monday 1971-03-29 17:17:17 CST -result = Monday 1971-04-05 00:00:00 CST +ts = Monday 1971-03-29 17:17:17 ACST +result = Monday 1971-04-05 00:00:00 ACST wanted = Monday 00:00:00 Australia/Perth -ts = Friday 1971-01-01 17:17:17 WST -result = Monday 1971-01-04 00:00:00 WST +ts = Friday 1971-01-01 17:17:17 AWST +result = Monday 1971-01-04 00:00:00 AWST wanted = Monday 00:00:00 America/Aruba diff --git a/ext/date/tests/bug33415-2.phpt b/ext/date/tests/bug33415-2.phpt index 424be76..c284f25 100644 --- a/ext/date/tests/bug33415-2.phpt +++ b/ext/date/tests/bug33415-2.phpt @@ -233,8 +233,8 @@ result=Saturday 1970-01-03 00:00:00 CAT 0 wanted=Saturday 00:00:00 TZ=Asia/Kashgar - Is it OK for this to be 3 AM? yes -tStamp=Thursday 1980-04-24 17:17:17 KAST 0 -result=Thursday 1980-05-01 03:00:00 CST 0 +tStamp=Thursday 1980-04-24 17:17:17 XJT 0 +result=Thursday 1980-05-01 00:00:00 XJT 0 wanted=Thursday 03:00:00 TZ=Indian/Christmas - Is it OK for this to be 7 AM? Note: does diff --git a/ext/date/tests/bug33532.phpt b/ext/date/tests/bug33532.phpt index 1486308..5323e8c 100644 --- a/ext/date/tests/bug33532.phpt +++ b/ext/date/tests/bug33532.phpt @@ -39,5 +39,5 @@ datestr 10:00:00 AM July 1 2005 UTC Setting TZ input 10:00:00 AM July 1 2005 -strftime 10:00:00 AM July 1 2005 EST +1000 -datestr 10:00:00 AM July 1 2005 EST +strftime 10:00:00 AM July 1 2005 AEST +1000 +datestr 10:00:00 AM July 1 2005 AEST

« previous php.cvs (#79809) next »