mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-11 14:31:28 +00:00
#1652 - Conversion problem between org.joda.time.LocalDate and java.sql.Date field for dates before Jan 2 1900
This commit is contained in:
1 parent
435e1f61fe
commit
409c1d06b2
4 files changed
+53
-13
No files matched your search
@@ -27,7 +27,7 @@ public class ScalarTypeJodaLocalDate extends ScalarTypeBaseDate<LocalDate> {
|
||||
|
||||
@Override
|
||||
public LocalDate convertFromDate(Date date) {
|
||||
return new LocalDate(date.getTime());
|
||||
return LocalDate.fromDateFields(date);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user