You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conversion between org.joda.time.LocalDate and java.sql.Date result in the same date.
Actual behavior
Conversion between org.joda.time.LocalDate and java.sql.Date of dates before Feb 2nd 1900 are one day off. For instance 1899-12-01 is converted to 1899-11-30. This is tested and confirmed wrong for Joda versions 2.9.7, 2.9.9 and 2.10.1. Note that dates after 1-1-1900 are not affected.
Steps to reproduce
Either take a look of the committed test or at the code example below:
Expected behavior
Conversion between org.joda.time.LocalDate and java.sql.Date result in the same date.
Actual behavior
Conversion between org.joda.time.LocalDate and java.sql.Date of dates before Feb 2nd 1900 are one day off. For instance 1899-12-01 is converted to 1899-11-30. This is tested and confirmed wrong for Joda versions 2.9.7, 2.9.9 and 2.10.1. Note that dates after 1-1-1900 are not affected.
Steps to reproduce
Either take a look of the committed test or at the code example below:
Ebean entity:
Database table:
Possible workaround is editting the Ebean entity:
The text was updated successfully, but these errors were encountered: