Changeset 54217 for trunk/tests/phpunit/tests/date/mysql2date.php
- Timestamp:
- 09/19/2022 09:18:59 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/mysql2date.php
r54207 r54217 37 37 */ 38 38 public function test_mysql2date_should_format_time() { 39 $timezone = 'Europe/ Kiev';39 $timezone = 'Europe/Helsinki'; 40 40 update_option( 'timezone_string', $timezone ); 41 41 $datetime = new DateTime( 'now', new DateTimeZone( $timezone ) ); … … 51 51 */ 52 52 public function test_mysql2date_should_format_time_with_changed_time_zone() { 53 $timezone = 'Europe/ Kiev';53 $timezone = 'Europe/Helsinki'; 54 54 // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set 55 55 date_default_timezone_set( $timezone ); … … 67 67 */ 68 68 public function test_mysql2date_should_return_wp_timestamp() { 69 $timezone = 'Europe/ Kiev';69 $timezone = 'Europe/Helsinki'; 70 70 update_option( 'timezone_string', $timezone ); 71 71 $datetime = new DateTime( 'now', new DateTimeZone( $timezone ) ); … … 81 81 */ 82 82 public function test_mysql2date_should_return_unix_timestamp_for_gmt_time() { 83 $timezone = 'Europe/ Kiev';83 $timezone = 'Europe/Helsinki'; 84 84 update_option( 'timezone_string', $timezone ); 85 85 $datetime = new DateTime( 'now', new DateTimeZone( 'UTC' ) );
Note: See TracChangeset
for help on using the changeset viewer.