migration fixes
This commit is contained in:
parent
c05f9e8fbd
commit
5e5efea33d
|
@ -188,7 +188,8 @@ public class DmpMigrationService {
|
||||||
switch (extraFieldEntity.getType()){
|
switch (extraFieldEntity.getType()){
|
||||||
case Date -> {
|
case Date -> {
|
||||||
try {
|
try {
|
||||||
valueEntity.setDateValue(Instant.parse((String) val));
|
if (((String) val).isBlank()) valueEntity.setDateValue(null);
|
||||||
|
else valueEntity.setDateValue(Instant.parse((String) val));
|
||||||
} catch (DateTimeParseException ex) {
|
} catch (DateTimeParseException ex) {
|
||||||
valueEntity.setDateValue(LocalDate.parse((String) val).atStartOfDay().toInstant(ZoneOffset.UTC));
|
valueEntity.setDateValue(LocalDate.parse((String) val).atStartOfDay().toInstant(ZoneOffset.UTC));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue