The conversion of the date is wrong, because the Month does not use the numeric representation on display.
I also changed how the timezone is handled, removing the misleading comment (there is nothing guaranteeing the OffsetDateTime is using UTC), and adding a few regression tests.
The conversion of the date is wrong, because the
Month
does not use the numeric representation on display.I also changed how the timezone is handled, removing the misleading comment (there is nothing guaranteeing the
OffsetDateTime
is using UTC), and adding a few regression tests.