Forbidden apis fix

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2021-03-20 21:27:02 +00:00
parent 9618056f1d
commit 207b98a5dc
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
package org.apache.poi.xwpf.usermodel;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.util.LocaleUtil;
import org.apache.poi.xwpf.XWPFTestDataSamples;
import org.junit.jupiter.api.Test;
@ -43,7 +44,7 @@ class TestXWPFComment {
@Test
public void testAddComment() throws IOException {
BigInteger cId = BigInteger.valueOf(0);
Calendar date = Calendar.getInstance();
Calendar date = LocaleUtil.getLocaleCalendar();
try (XWPFDocument docOut = new XWPFDocument()) {
assertNull(docOut.getDocComments());