I have a Java Timestamp value like: 1799-12-31 19:03:58.0 And when I try to convert it into the OffsetDateTime using the code:
timestamp.toLocalDateTime().atZone(ZoneId.systemDefault()).toOffsetDateTime();
It gives me the output as:
1799-12-31T19:03:58+05:53:28
Which is not getting parsed at frontend (Angular's date pipe). But the same code returns the different offset for the timestamp: 2019-08-24 10:15:22.0 as:
2019-08-24T10:15:22+05:30
Which is valid and successfully gets parsed by Angular's date pipe.
I am not getting why it is returning different offset for the '1799-12-31 19:03:58.0' date.