Permalink
Browse files

added dc.date.modified and dc.date.created to date parser

  • Loading branch information...
Orbiter committed Jan 24, 2017
1 parent 9cfe8dd commit d4f45cf05e3af5d57cf402665b669ab246b5a667
Showing with 8 additions and 0 deletions.
  1. +8 −0 source/net/yacy/document/parser/html/ContentScraper.java
@@ -1128,6 +1128,14 @@ public Date getDate() {
content = this.metas.get("date");
if (content != null) try {return ISO8601Formatter.FORMATTER.parse(content, this.timezoneOffset).getTime();} catch (ParseException e) {}
// <meta name="DC.date.modified" content="YYYY-MM-DD" />
content = this.metas.get("dc.date.modified");
if (content != null) try {return ISO8601Formatter.FORMATTER.parse(content, this.timezoneOffset).getTime();} catch (ParseException e) {}
// <meta name="DC.date.created" content="YYYY-MM-DD" />
content = this.metas.get("dc.date.created");
if (content != null) try {return ISO8601Formatter.FORMATTER.parse(content, this.timezoneOffset).getTime();} catch (ParseException e) {}
// <meta name="DC.date" content="YYYY-MM-DD" />
content = this.metas.get("dc.date");
if (content != null) try {return ISO8601Formatter.FORMATTER.parse(content, this.timezoneOffset).getTime();} catch (ParseException e) {}

0 comments on commit d4f45cf

Please sign in to comment.