Merge branch 'maint-rel-1.6' of https://github.com/vivo-project/Vitro into maint-rel-1.6
This commit is contained in:
commit
9914d3e4b9
2 changed files with 11 additions and 8 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
package edu.cornell.mannlib.vitro.webapp.controller.individual;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
@ -343,7 +344,9 @@ public class IndividualRdfAssembler {
|
|||
}
|
||||
|
||||
private Literal createDateLiteral(OntModel o) {
|
||||
return o.createTypedLiteral(new Date(), XSDDatatype.XSDdate);
|
||||
String date = new SimpleDateFormat("YYYY-MM-dd'T'HH:mm:ss")
|
||||
.format(new Date());
|
||||
return o.createTypedLiteral(date, XSDDatatype.XSDdateTime);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue