Issue parsing timestamp with timezone having offset of format +hh:mm:ss
#509
Labels
type: enhancement
A general enhancement
Milestone
Feature Request
Is your feature request related to a problem? Please describe
tested on
postgres:10-alpine
docker imageI have an issue when trying to parse
timestamp with timezone
in format of0001-01-01 08:20:53+02:30:17
toLocalDateTime
/OffsetDateTime
/ZonedDateTime
. Here is an example test code on groovy:which giving following stacktrace:
Describe the solution you'd like
it seems that for year which is lower then 1920 postgres does not convert timestamp with timezone to format of
+hh:00:00
and leaves it in unformatted way (e. g.+02:30:17
).This could be fixed by adding following change to PostgresqlDateTimeFormatter
Describe alternatives you've considered
Conversion of offset could be fixed in postgresql which will take more time, I suppose
Teachability, Documentation, Adoption, Migration Strategy
Nothing to document
The text was updated successfully, but these errors were encountered: