Fix time check with non-precise expected value.