forbidden-apis-fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735316 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7c073ada9
commit
4c4d718f52
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user