Skip to content

Commit

Permalink
Add timezone to Date::createFromFormat() test
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Aug 21, 2020
1 parent 94ff5a8 commit 38b5000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Date/ConstructTest.php
Expand Up @@ -416,7 +416,7 @@ public function testCreateFromDateTimeInterface($class)
*/
public function testCreateFromFormat($class)
{
$date = $class::createFromFormat('Y-m-d', '2014-02-01');
$this->assertSame('2014-02-01 00:00:00', $date->format('Y-m-d H:i:s'));
$date = $class::createFromFormat('Y-m-d P', '2014-02-01 Asia/Tokyo');
$this->assertSame('2014-02-01 00:00:00 America/Toronto', $date->format('Y-m-d H:i:s e'));
}
}

0 comments on commit 38b5000

Please sign in to comment.