Fork me on GitHub
#java
<
2022-12-18
>
Ben Sless14:12:11

Anyone know how java.time.format.DateTimeFormatter changed since java 8? I have an Instant that I serialized with .toString in java 17, I can parse it in 17 and 15 but not in 11 or 8 This is the string 2022-12-18T12:00:25.840823567-00:00

viesti20:12:52

I wonder if it’s related to this https://stackoverflow.com/a/69033040

Ben Sless20:12:13

Ended up changing the -00:00 to Z and it worked :face_with_peeking_eye:

1