FIX: Backward compatibility to ebean 11

This commit is contained in:
Roland Praml committed 2021-11-29 13:30:56 +01:00
1 parent 3883db84b5
commit 4152ae9814
2 files changed
+17 -1

No files matched your search

@@ -10,6 +10,7 @@ import java.sql.Timestamp;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeParseException;
/**
* ScalarType for java.sql.Timestamp.
@@ -62,7 +63,11 @@ final class ScalarTypeLocalDateTime extends ScalarTypeBaseDateTime<LocalDateTime
@Override
public LocalDateTime parse(String value) {
return LocalDateTime.parse(value);
try {
return LocalDateTime.parse(value);
} catch (DateTimeParseException pe) {
return super.parse(value);
}
}
@Override