One quick fix I have is to remove the nanoseconds part of the time, but I'd rather understand the issue.
d
Dominik Sandjaja
04/15/2026, 4:51 PM
The issue is most likely the difference in time resolution between your machine (not Linux) and the CI machine (Linux).
We deal with that in the same way you do: either test on the level we are interested in (eg ms or s, depending) or only check for relative values (after, before).
r
Romain
04/15/2026, 4:52 PM
That makes sense (I'm using macOS locally but linux in CI). I'll keep addressing this at the test level then, thank you!
l
Luis Arcos
04/15/2026, 5:10 PM
We use
Instant
instead of
LocalDateTime
when writing to the database due to time zone differences.
r
Romain
04/15/2026, 5:13 PM
I'm storing the LocalDateTime using the UTC timezone, but I've been thinking about moving to Instant for future models.