Tests: Helps to also update the hour and not just the timezone to temporarily fix a test broken due to Daylight Saving Time changes in Europe.
git-svn-id: https://develop.svn.wordpress.org/trunk@39013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
64aac0df10
commit
fff3c88cb1
|
@ -65,6 +65,6 @@ class Tests_Date_I18n extends WP_UnitTestCase {
|
||||||
public function test_adjusts_format_based_on_timezone_string() {
|
public function test_adjusts_format_based_on_timezone_string() {
|
||||||
update_option( 'timezone_string', 'Europe/Zurich' );
|
update_option( 'timezone_string', 'Europe/Zurich' );
|
||||||
|
|
||||||
$this->assertEquals( '2012-12-01 00:00:00 CET +02:00 Europe/Zurich', date_i18n( 'Y-m-d H:i:s T P e', strtotime( '2012-12-01 00:00:00' ) ) );
|
$this->assertEquals( '2012-12-01 00:00:00 CET +01:00 Europe/Zurich', date_i18n( 'Y-m-d H:i:s T P e', strtotime( '2012-12-01 00:00:00' ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue