commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <mcucchi...@apache.org>
Subject [BeanUtils] DateTimeConversion
Date Mon, 16 Apr 2012 14:54:02 GMT
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


Mime
View raw message