Skip to content

Commit

Permalink
Set "from" always minus 1 minute (#350)
Browse files Browse the repository at this point in the history
This follows the recommendation of the DNB. This enables a bit of overlapping
to ensure to get all the data.

See #350 (comment).
  • Loading branch information
dr0i committed Nov 10, 2023
1 parent 4ae5366 commit 6484cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/apps/ConvertUpdates.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static void process(final String baseUrl, ZonedDateTime from, ZonedDateTi
throws NoSuchFieldException, IOException, ParserConfigurationException, SAXException, TransformerException,
XMLStreamException, XPathException {
ByteArrayOutputStream stream = new ByteArrayOutputStream();
String fromFormatted = from.format(dateTimeFormatter);
String fromFormatted = from.minusMinutes(1).format(dateTimeFormatter);
String untilFormatted = until.format(dateTimeFormatter);

System.out.printf("Calling OAI-PMH at %s from %s until %s\n", baseUrl, fromFormatted, untilFormatted);
Expand Down

0 comments on commit 6484cdd

Please sign in to comment.