You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Maurizio Cucchiara <mc...@apache.org> on 2012/04/16 16:54:02 UTC
[BeanUtils] DateTimeConversion
Hi all,
I have been experiencing some trouble with date time conversion,�I
wrote a simple test [1] and a potential patch (see attachment) which
explains the issue.
______________________________________________________________
Additional info:
* My default locale is italian.
* Stacktrace:
org.apache.commons.beanutils.ConversionException: Error converting
'String' to 'Calendar' using pattern 'EEE, dd MMM yyyy HH:mm:ss Z'
at org.apache.commons.beanutils.converters.DateTimeConverter.parse(DateTimeConverter.java:563)
at org.apache.commons.beanutils.converters.DateTimeConverter.parse(DateTimeConverter.java:523)
at org.apache.commons.beanutils.converters.DateTimeConverter.convertToType(DateTimeConverter.java:331)
at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:156)
at org.apache.commons.beanutils.converters.DateTimeConverterTest.testConvertDate2(DateTimeConverterTest.java:21)
....
[1]�https://gist.github.com/2397608
Twitter � � :http://www.twitter.com/m_cucchiara
G+ � � � � �:https://plus.google.com/107903711540963855921
Linkedin � �:http://www.linkedin.com/in/mauriziocucchiara
Maurizio Cucchiara
Re: [BeanUtils] DateTimeConversion
Posted by Maurizio Cucchiara <mc...@apache.org>.
The only way to make it work is the workaround inside the test [1]
[1] https://gist.github.com/2397608
Twitter :http://www.twitter.com/m_cucchiara
G+ :https://plus.google.com/107903711540963855921
Linkedin :http://www.linkedin.com/in/mauriziocucchiara
Maurizio Cucchiara
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org