Browse Source

Merge pull request #797 in CORE/base-third from release/10.0 to bugfix/10.0

* commit 'a034a630e7c2ae1bd8960e4d676d9e406903482d':
  fix
bugfix/10.0
superman 4 years ago
parent
commit
7892338e70
  1. 9
      fine-poi/src/main/java/com/fr/third/v2/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java

9
fine-poi/src/main/java/com/fr/third/v2/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java

@ -571,10 +571,11 @@ public final class PackagePropertiesPart extends PackagePart implements
df.setTimeZone(LocaleUtil.TIMEZONE_UTC);
d = df.parse(dateTzStr, new ParsePosition(0));
}
if (d == null) {
throw new InvalidFormatException("Date " + dateTzStr + " not well formated, "
+ "expected format " + DEFAULT_DATEFORMAT + " or " + ALTERNATIVE_DATEFORMAT);
}
// BI-72094 先解决问题
// if (d == null) {
// throw new InvalidFormatException("Date " + dateTzStr + " not well formated, "
// + "expected format " + DEFAULT_DATEFORMAT + " or " + ALTERNATIVE_DATEFORMAT);
// }
return new Nullable<Date>(d);
}

Loading…
Cancel
Save