slick-pg
slick-pg copied to clipboard
regression: OffsetDateTime returns results in UTC instead of the local timezone
The refactoring done to PgDate2 support causes a regression when reading OffsetDateTime values from the database.
In older releases, you would store f.e. an OffsetDateTime with value "2001-01-03 13:21:00.102203+08" and upon reading it back would get exactly the same value back. The reading from the database took into account the 'default' timezone of the application.
In release 0.15.1 you now get back "2001-01-03T05:21:00.102203Z". Technically it is the same but it is very inconvenient: the application now has to convert it to its own 'default' timezone.
Merged it. Thanks! 👍