Skip to content

Commit 830a252

Browse files
committed
PDFBOX-6107: adjust test to UTC
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930074 13f79535-47bb-0310-9956-ffa450edef68
1 parent 64b2865 commit 830a252

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xmpbox/src/test/java/org/apache/xmpbox/DateConverterTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.time.ZonedDateTime;
3131
import java.time.format.DateTimeFormatter;
3232
import java.util.Calendar;
33+
import java.util.TimeZone;
3334

3435
import org.junit.jupiter.api.Test;
3536

@@ -136,6 +137,7 @@ void testDateFormatting() throws IOException
136137

137138
// PDFBOX-6107
138139
cal = DateConverter.toCalendar("0000-01-01");
139-
assertEquals("0001-01-01T00:00:00+01:00", DateConverter.toISO8601(cal));
140+
cal.setTimeZone(TimeZone.getTimeZone("UTC"));
141+
assertEquals("0001-01-01T00:00:00+00:00", DateConverter.toISO8601(cal));
140142
}
141143
}

0 commit comments

Comments
 (0)