Changeset 43389 for trunk/tests/phpunit/tests/date/dateI18n.php
- Timestamp:
- 07/04/2018 11:42:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/dateI18n.php
r43387 r43389 15 15 16 16 public function test_date_should_be_in_gmt() { 17 $this->assertEquals( strtotime( date( 'Y-m-d H:i:s' ) ), strtotime( date_i18n( 'Y-m-d H:i:s', false, true ) ), 'The dates should be equal', 2 );17 $this->assertEquals( strtotime( date( DATE_RFC3339 ) ), strtotime( date_i18n( DATE_RFC3339, false, true ) ), 'The dates should be equal', 2 ); 18 18 } 19 19 … … 31 31 update_option( 'timezone_string', 'America/Regina' ); 32 32 33 $this->assertEquals( strtotime( date( 'Y-m-d H:i:s' ) ), strtotime( date_i18n( 'Y-m-d H:i:s', false, true ) ), 'The dates should be equal', 2 );33 $this->assertEquals( strtotime( date( DATE_RFC3339 ) ), strtotime( date_i18n( DATE_RFC3339, false, true ) ), 'The dates should be equal', 2 ); 34 34 } 35 35
Note: See TracChangeset
for help on using the changeset viewer.