Skip to content
Snippets Groups Projects
Commit 40445b2e authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

test: testing more testing more testing

parent e44e2310
No related branches found
No related tags found
No related merge requests found
Pipeline #347496 failed
...@@ -5,6 +5,7 @@ import java.io.StringWriter; ...@@ -5,6 +5,7 @@ import java.io.StringWriter;
import java.math.BigInteger; import java.math.BigInteger;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.time.ZoneOffset;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
...@@ -181,7 +182,8 @@ public class OaipmhUtilities { ...@@ -181,7 +182,8 @@ public class OaipmhUtilities {
// Parse TextGrid time format. // Parse TextGrid time format.
Date date = TEXTGRID_ITEM_TIME_FORMAT.parse(originalDateTimeString); Date date = TEXTGRID_ITEM_TIME_FORMAT.parse(originalDateTimeString);
// Set formatter UTC. // Set formatter UTC.
OAIDC_UTC_TIME_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC")); // OAIDC_UTC_TIME_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC"));
OAIDC_UTC_TIME_FORMAT.setTimeZone(TimeZone.getTimeZone(ZoneOffset.UTC));
String result = OAIDC_UTC_TIME_FORMAT.format(date); String result = OAIDC_UTC_TIME_FORMAT.format(date);
log.fine("outgoing utc date: " + result); log.fine("outgoing utc date: " + result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment