Fixes parsing of modification/creation Date in AtomJsonLd parsing
@@ -350,7 +350,7 @@ function extractCreationDate(atomJsonLd) {
atomJsonLd.get("dct:created") ||
atomJsonLd.get("http://purl.org/dc/terms/created");
if (creationDate) {
- return new Date(creationDate);
+ return new Date(get(creationDate, "@value"));
}
return undefined;
}
@@ -360,7 +360,7 @@ function extractLastModifiedDate(atomJsonLd) {
atomJsonLd.get("dct:modified") ||
atomJsonLd.get("http://purl.org/dc/terms/modified");
if (lastModifiedDate) {
- return new Date(lastModifiedDate);
+ return new Date(get(lastModifiedDate, "@value"));
}
return undefined;
}
