diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-09-10 21:31:00 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-09-10 21:31:00 +0000 |
commit | 9f26731f44ba4eccabdb82f0a23f91eb755787fc (patch) | |
tree | 72546e1a15948a998654551c99bac7e0fd4458fb /src/testcases/org/apache/poi/ss/formula/functions | |
parent | 91e804553b72900a14ffbf702474c077c4b94c2f (diff) | |
download | poi-9f26731f44ba4eccabdb82f0a23f91eb755787fc.tar.gz poi-9f26731f44ba4eccabdb82f0a23f91eb755787fc.zip |
forbidden apis fixes - timezone fix ... will it work?
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/formula/functions')
-rw-r--r-- | src/testcases/org/apache/poi/ss/formula/functions/TestText.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestText.java b/src/testcases/org/apache/poi/ss/formula/functions/TestText.java index 4249de677b..928c639fae 100644 --- a/src/testcases/org/apache/poi/ss/formula/functions/TestText.java +++ b/src/testcases/org/apache/poi/ss/formula/functions/TestText.java @@ -115,6 +115,7 @@ public final class TestText { // update: now the locale will be (if not set otherwise) always Locale.getDefault() (see LocaleUtil) DateFormatSymbols dfs = DateFormatSymbols.getInstance(LocaleUtil.getUserLocale()); SimpleDateFormat sdf = new SimpleDateFormat("MMMM", dfs); + sdf.setTimeZone(LocaleUtil.getUserTimeZone()); String november = sdf.format(LocaleUtil.getLocaleCalendar(2015,10,1).getTime()); // Again with Java style |