One quick fix I have is to remove the nanoseconds ...
# exposed
r
One quick fix I have is to remove the nanoseconds part of the time, but I'd rather understand the issue.
d
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
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
We use
Instant
instead of
LocalDateTime
when writing to the database due to time zone differences.
r
I'm storing the LocalDateTime using the UTC timezone, but I've been thinking about moving to Instant for future models.