public function test_now_ZoneId() { $zone = ZoneId::of("UTC+01:02:03"); $expected = ZonedDateTime::nowOf(Clock::system($zone)); $test = ZonedDateTime::nowIn($zone); for ($i = 0; $i < 100; $i++) { if ($expected->equals($test)) { return; } $expected = ZonedDateTime::nowOf(Clock::system($zone)); $test = ZonedDateTime::nowIn($zone); } $this->assertEquals($test, $expected); }