poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1735316 - /poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java
Date Wed, 16 Mar 2016 21:59:40 GMT
Author: kiwiwings
Date: Wed Mar 16 21:59:40 2016
New Revision: 1735316

URL: http://svn.apache.org/viewvc?rev=1735316&view=rev
Log:
forbidden-apis-fix

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

Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java?rev=1735316&r1=1735315&r2=1735316&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java
Wed Mar 16 21:59:40 2016
@@ -585,7 +585,7 @@ public final class PackagePropertiesPart
 			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);
 				}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message