]> source.dussan.org Git - poi.git/commitdiff
forbidden-apis-fix
authorAndreas Beeker <kiwiwings@apache.org>
Wed, 16 Mar 2016 21:59:40 +0000 (21:59 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Wed, 16 Mar 2016 21:59:40 +0000 (21:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735316 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java

index 455891f644563cd93be021e4bd7602d8d3efe9b9..bb93c36926be3a204032b80524c5db00055fe3c8 100644 (file)
@@ -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<Date>(d);
                                }