Hi!
Now we using apache poi 3.6 version but we need update version to 3.8
When we update version we have problem with date
for example creation date document

In poi 3.6 version we can see a code:
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
Date d = df.parse(s, new ParsePosition(0));
In poi 3.7 and 3.8 version we can see a code:
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
df.setTimeZone(TimeZone.getTimeZone("UTC"));
Date d = df.parse(s, new ParsePosition(0));

so if we extract date as String s = "2010-08-31T07:53:00Z" and, as mentiond
above, it will be formatted as set pattern.
But since timezone is hardcoded and set to "UTC", the date is treated as
2010-08-31 07:53:00 in UTC timezone.
So, in our (UTC+3) time zone the date will be "2010-08-31T10:53:00Z" and
that is not correct.

Can you fix it?

Reply via email to