Vamsi Krishna Bhagi created LANG-1425:
-----------------------------------------
Summary: DateUtils.parseDateStrictly() is not parsing millisecond
value
Key: LANG-1425
URL: https://issues.apache.org/jira/browse/LANG-1425
Project: Commons Lang
Issue Type: Bug
Affects Versions: 3.7
Reporter: Vamsi Krishna Bhagi
We need to parse String to java.util.Date and are having multiple Date formats.
Snippet for this is
{code:java}
java.util.Date dt = DateUtils.parseDateStrictly(verificationDate.get_value(),
Locale.ENGLISH,
new String[] {
"yyyy-MM-dd'T'HH:mm:ss.SSSSSSSXXX","yyyy-MM-dd'T'HH:mm::ss.SSSSSSS" });{code}
2018-11-13T08:03:41.2860000-06:00 is not being parsed correctly. On
troubleshooting, we discovered that 2018-11-13T08:03:41.0000286-06:00 is
parsing fine.
How to handle this?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)