diff --git a/src/main/java/org/gesis/dda/wizard/service/BundlesSourceService.java b/src/main/java/org/gesis/dda/wizard/service/BundlesSourceService.java index bad994aef19f1ddf83704e8bbcdc1bfc8c955be0..8af177c2f6126a04bcd76a387629d043f7749f83 100755 --- a/src/main/java/org/gesis/dda/wizard/service/BundlesSourceService.java +++ b/src/main/java/org/gesis/dda/wizard/service/BundlesSourceService.java @@ -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); }