Project

General

Profile

« Previous | Next » 

Revision 53616

Corrected Creation Date format

View differences:

modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/schemaorg/DatasetMappingIterator.java
325 325
		List<LocalDate> createdDates = new ArrayList<>();
326 326
		if(this.options.getCreatedDateOptions() == null || this.options.getCreatedDateOptions().format == null || this.options.getCreatedDateOptions().format.length() == 0) return createdDates;
327 327

  
328
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(this.options.getPublicationDateOptions().format);
328
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(this.options.getCreatedDateOptions().format);
329 329

  
330 330
		List<String> dates = JSONLDUtils.extractString(document, "dateCreated");
331 331
		for(String createdDate : dates){

Also available in: Unified diff