Loading src/main/java/org/gesis/dda/wizard/service/BundlesSourceService.java +5 −0 Original line number Diff line number Diff line Loading @@ -46,12 +46,17 @@ public class BundlesSourceService { KmhopbssDto updatedDto; if ( originalDto.isSecondGranularity() ) { // next three lines for testing, can be removed afterwards LocalDateTime ldt = LocalDateTime.ofInstant(nextIncrementalHarvestingStartInstant, ZoneOffset.UTC ); LocalDate dayFrom = LocalDate.of( ldt.getYear(), ldt.getMonth(), ldt.getDayOfMonth() ); log.info("Setting from date to: {}", dayFrom.toString()); updatedDto = new KmhopbssDto(oaiPmhEndpoint, nextIncrementalHarvestingStartInstant, null); } else { LocalDateTime ldt = LocalDateTime.ofInstant(nextIncrementalHarvestingStartInstant, ZoneOffset.UTC ); // convert from Instant to yyyy-MM-dd LocalDate dayFrom = LocalDate.of( ldt.getYear(), ldt.getMonth(), ldt.getDayOfMonth() ); log.info("Setting dayFrom to: {}", dayFrom.toString()); updatedDto = new KmhopbssDto(oaiPmhEndpoint, dayFrom, null); } Loading Loading
src/main/java/org/gesis/dda/wizard/service/BundlesSourceService.java +5 −0 Original line number Diff line number Diff line Loading @@ -46,12 +46,17 @@ public class BundlesSourceService { KmhopbssDto updatedDto; if ( originalDto.isSecondGranularity() ) { // next three lines for testing, can be removed afterwards LocalDateTime ldt = LocalDateTime.ofInstant(nextIncrementalHarvestingStartInstant, ZoneOffset.UTC ); LocalDate dayFrom = LocalDate.of( ldt.getYear(), ldt.getMonth(), ldt.getDayOfMonth() ); log.info("Setting from date to: {}", dayFrom.toString()); updatedDto = new KmhopbssDto(oaiPmhEndpoint, nextIncrementalHarvestingStartInstant, null); } else { LocalDateTime ldt = LocalDateTime.ofInstant(nextIncrementalHarvestingStartInstant, ZoneOffset.UTC ); // convert from Instant to yyyy-MM-dd LocalDate dayFrom = LocalDate.of( ldt.getYear(), ldt.getMonth(), ldt.getDayOfMonth() ); log.info("Setting dayFrom to: {}", dayFrom.toString()); updatedDto = new KmhopbssDto(oaiPmhEndpoint, dayFrom, null); } Loading