diff --git a/tests/system/I18n/TimeTest.php b/tests/system/I18n/TimeTest.php index 86c7af0700c6..93d709943d52 100644 --- a/tests/system/I18n/TimeTest.php +++ b/tests/system/I18n/TimeTest.php @@ -25,7 +25,7 @@ public function testNewTimeNow() $time = new Time(null, 'America/Chicago'); - $this->assertEquals($formatter->format(strtotime('now')), (string)$time); + $this->assertEquals($formatter->format($time), (string)$time); } public function testTimeWithTimezone() @@ -41,7 +41,7 @@ public function testTimeWithTimezone() $time = new Time('now', 'Europe/London'); - $this->assertEquals($formatter->format(strtotime('now')), (string)$time); + $this->assertEquals($formatter->format($time), (string)$time); } public function testTimeWithTimezoneAndLocale() @@ -57,7 +57,7 @@ public function testTimeWithTimezoneAndLocale() $time = new Time('now', 'Europe/London', 'fr_FR'); - $this->assertEquals($formatter->format(strtotime('now')), (string)$time); + $this->assertEquals($formatter->format($time), (string)$time); } public function testTimeWithDateTimeZone() @@ -73,7 +73,7 @@ public function testTimeWithDateTimeZone() $time = new Time('now', new \DateTimeZone('Europe/London'), 'fr_FR'); - $this->assertEquals($formatter->format(strtotime('now')), (string)$time); + $this->assertEquals($formatter->format($time), (string)$time); } public function testToDateTime()