From: Andreas Beeker Date: Wed, 16 Mar 2016 21:59:40 +0000 (+0000) Subject: forbidden-apis-fix X-Git-Tag: REL_3_15_BETA2~432 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6a96fd11d16bbadf9e2025cda713bf3b0ebae1f;p=poi.git forbidden-apis-fix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735316 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java index 455891f644..bb93c36926 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java @@ -585,7 +585,7 @@ public final class PackagePropertiesPart extends PackagePart implements for (String fStr : TZ_DATE_FORMATS) { SimpleDateFormat df = new SimpleDateFormat(fStr, Locale.ROOT); df.setTimeZone(LocaleUtil.TIMEZONE_UTC); - Date d = new SimpleDateFormat(fStr).parse(dateTzStr, new ParsePosition(0)); + Date d = df.parse(dateTzStr, new ParsePosition(0)); if (d != null) { return new Nullable(d); }