Fix minor issue with elastic date parsing
This commit is contained in:
parent
17b72cde60
commit
78688420d2
|
@ -317,8 +317,12 @@ public class Dmp implements ElasticEntity<Dmp> {
|
|||
if (fields.get(MapKey.GRANTSTATUS.getName()) != null) {
|
||||
this.grantStatus = Short.valueOf(fields.get(MapKey.GRANTSTATUS.getName()).toString());
|
||||
}
|
||||
this.created = Date.from(Instant.parse(fields.get(MapKey.CREATED.getName()).toString()));
|
||||
this.modified = Date.from(Instant.parse(fields.get(MapKey.MODIFIED.getName()).toString()));
|
||||
if (fields.containsKey(MapKey.CREATED.getName())) {
|
||||
this.created = Date.from(Instant.parse(fields.get(MapKey.CREATED.getName()).toString()));
|
||||
}
|
||||
if (fields.containsKey(MapKey.MODIFIED.getName())) {
|
||||
this.modified = Date.from(Instant.parse(fields.get(MapKey.MODIFIED.getName()).toString()));
|
||||
}
|
||||
if (fields.get(MapKey.FINALIZEDAT.getName()) != null) {
|
||||
this.finalizedAt = Date.from(Instant.parse(fields.get(MapKey.FINALIZEDAT.getName()).toString()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue