Changeset 54512 for branches/6.0/tests/phpunit/tests/date/mysql2date.php
- Timestamp:
- 10/14/2022 05:58:20 AM (2 years ago)
- Location:
- branches/6.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0
-
branches/6.0/tests/phpunit/tests/date/mysql2date.php
r52010 r54512 34 34 */ 35 35 public function test_mysql2date_should_format_time() { 36 $timezone = 'Europe/ Kiev';36 $timezone = 'Europe/Helsinki'; 37 37 update_option( 'timezone_string', $timezone ); 38 38 $datetime = new DateTime( 'now', new DateTimeZone( $timezone ) ); … … 48 48 */ 49 49 public function test_mysql2date_should_format_time_with_changed_time_zone() { 50 $timezone = 'Europe/ Kiev';50 $timezone = 'Europe/Helsinki'; 51 51 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 52 52 date_default_timezone_set( $timezone ); … … 64 64 */ 65 65 public function test_mysql2date_should_return_wp_timestamp() { 66 $timezone = 'Europe/ Kiev';66 $timezone = 'Europe/Helsinki'; 67 67 update_option( 'timezone_string', $timezone ); 68 68 $datetime = new DateTime( 'now', new DateTimeZone( $timezone ) ); … … 78 78 */ 79 79 public function test_mysql2date_should_return_unix_timestamp_for_gmt_time() { 80 $timezone = 'Europe/ Kiev';80 $timezone = 'Europe/Helsinki'; 81 81 update_option( 'timezone_string', $timezone ); 82 82 $datetime = new DateTime( 'now', new DateTimeZone( 'UTC' ) );
Note: See TracChangeset
for help on using the changeset viewer.