aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/usermodel
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2015-09-01 18:37:07 +0000
committerNick Burch <nick@apache.org>2015-09-01 18:37:07 +0000
commit4ee2705d7a894ed047bff9ff9c449ae1638b6888 (patch)
tree403546e9c8ff4630fedee6755362d239d0b1d59b /src/testcases/org/apache/poi/hssf/usermodel
parent72433ac40591b0425116eb5214d7c92cbc1e2bc1 (diff)
downloadpoi-4ee2705d7a894ed047bff9ff9c449ae1638b6888.tar.gz
poi-4ee2705d7a894ed047bff9ff9c449ae1638b6888.zip
Fix some Forbidden APIs errors
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java
index 2e34d6f602..7abd515743 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java
@@ -25,6 +25,7 @@ import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
+import java.util.Locale;
import java.util.TimeZone;
import org.apache.poi.hssf.HSSFTestDataSamples;
@@ -461,7 +462,7 @@ public final class TestHSSFDateUtil {
* @param day one based
*/
private static Date createDate(int year, int month, int day, int hour, int minute, int second) {
- Calendar c = new GregorianCalendar();
+ Calendar c = new GregorianCalendar(Locale.ROOT);
c.set(year, month, day, hour, minute, second);
c.set(Calendar.MILLISECOND, 0);
return c.getTime();