Hi,
OpenXmlExtractor.convertStringToDate(String value) works incorrect. For
example:
convertStringToDate("2009-11-12T09:52:00Z") = "Thu Nov 12 09:52:00 MSK
2009", but it should be "Thu Nov 12 12:52:00 MSK 2009".
The solution is to set UTC timezone for the utcFormat:
DateFormat utcFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
utcFormat.setCalendar(Calendar.getInstance(new SimpleTimeZone(0, "UTC")));
Antoni Mylka
general
1.3.1 - bugs
Public
|
Date: 2009-11-12 12:48 Yes, it works fine now. Thanks. |
|
Date: 2009-11-12 12:23 Applied a litle fix. made the convertStringToDate method use the |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-11-12 12:48 | igorrogov |
| resolution_id | None | 2009-11-12 12:48 | igorrogov |
| allow_comments | 1 | 2009-11-12 12:48 | igorrogov |
| close_date | - | 2009-11-12 12:48 | igorrogov |
| assigned_to | nobody | 2009-11-12 12:23 | mylka |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use