From 4c4d718f525676367dfc6f8aa0b96b6007c4da10 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Wed, 16 Mar 2016 21:59:40 +0000 Subject: [PATCH] forbidden-apis-fix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735316 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/openxml4j/opc/internal/PackagePropertiesPart.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 455891f64..bb93c3692 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); }