From 6484cdd5b8bb850c4b92e0aff32ed4352eb32be6 Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Fri, 10 Nov 2023 11:19:58 +0100 Subject: [PATCH] Set "from" always minus 1 minute (#350) This follows the recommendation of the DNB. This enables a bit of overlapping to ensure to get all the data. See https://github.com/hbz/lobid-gnd/issues/350#issuecomment-1717004440. --- app/apps/ConvertUpdates.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/apps/ConvertUpdates.java b/app/apps/ConvertUpdates.java index f3a89b2..abf6598 100644 --- a/app/apps/ConvertUpdates.java +++ b/app/apps/ConvertUpdates.java @@ -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);