Well.. seems that you convert expect that: dd/MM/yyyy HH:mm:ss
(
https://github.com/ivanjunckes/convertertest/blob/master/src/main/java/com/test/DateTimeConverter.java#L17
)
But you are receiving that: 2019-03-12T17:14:31.941

Em ter, 12 de mar de 2019 às 14:19, Ivan Junckes Filho <
[email protected]> escreveu:

> Hey guys, can anyone help me to understand why I am having issues with the
> DateTimeConverter in my test?
>
> Here is a sample project with the issue.
> https://github.com/ivanjunckes/convertertest
>
> If anyone could also help make this project work without the need for the
> DateTimeConverter but actually using a configuration properties would be
> great.
>
> *Error:*
> Caused by: java.lang.IllegalArgumentException: java.text.ParseException:
> Unparseable date: "2019-03-12T17:14:31.941"
> at com.test.DateTimeConverter.fromString(DateTimeConverter.java:32)
> at com.test.DateTimeConverter.fromString(DateTimeConverter.java:10)
> at org.apache.johnzon.mapper.internal.ConverterAdapter.to
> (ConverterAdapter.java:37)
> at org.apache.johnzon.mapper.internal.ConverterAdapter.to
> (ConverterAdapter.java:24)
> at
>
> org.apache.johnzon.mapper.MappingParserImpl.toValue(MappingParserImpl.java:742)
> ... 141 more
> Caused by: java.text.ParseException: Unparseable date:
> "2019-03-12T17:14:31.941"
> at java.text.DateFormat.parse(DateFormat.java:366)
> at com.test.DateTimeConverter.fromString(DateTimeConverter.java:30)
> ... 145 more
>


-- 
Daniel "soro" Cunha
https://twitter.com/dvlc_

Reply via email to