As you can see the time java.sql.Timestamp -> java.time.Instant conversion depends on the JVM default time zone.
because it was what I was experiencing and why I had to set the JVM default timezone before starting the tests, which was, as @987Nabil was pointing out, weird.
Dumb copy/paste mistake ðŸ˜
This comment made me doubt my code: https://github.com/pgjdbc/pgjdbc/issues/1325#issuecomment-439467466 Especially this line:
because it was what I was experiencing and why I had to set the JVM default timezone before starting the tests, which was, as @987Nabil was pointing out, weird.
Thanks @987Nabil for your review 🙂