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