If the date in the database row is at least a couple hundred years old, the LocalDate object gets offset by a certain value.
For example, I have a database row with a date of 1232-12-31, and the LocalDate object returns 1233-01-07.
1500-12-31 returns 1501-01-10 and so on.
Is this caused by leap years? Or something else? Is there a possible solution for this? Or just an explanation?
If it's of any help I use PostgreSQL 12 and Hibernate(5.2.9-final) + Spring Boot(1.4.1.RELEASE) for the application and Entity classes for my tables.