Browse Source

Pull request #786: BI-72094 【515final】上传附件excel报错

Merge in CORE/base-third from ~HARDER/base-third:release/10.0 to release/10.0

* commit 'b3bc412c4a46267b13891216b1a68c59954f4443':
  fix
release/10.0
Harder 4 years ago
parent
commit
a034a630e7
  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); df.setTimeZone(LocaleUtil.TIMEZONE_UTC);
d = df.parse(dateTzStr, new ParsePosition(0)); d = df.parse(dateTzStr, new ParsePosition(0));
} }
if (d == null) { // BI-72094 先解决问题
throw new InvalidFormatException("Date " + dateTzStr + " not well formated, " // if (d == null) {
+ "expected format " + DEFAULT_DATEFORMAT + " or " + ALTERNATIVE_DATEFORMAT); // throw new InvalidFormatException("Date " + dateTzStr + " not well formated, "
} // + "expected format " + DEFAULT_DATEFORMAT + " or " + ALTERNATIVE_DATEFORMAT);
// }
return new Nullable<Date>(d); return new Nullable<Date>(d);
} }

Loading…
Cancel
Save