mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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
22acc7334c
commit
e6a96fd11d
@ -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…
x
Reference in New Issue
Block a user