[ https://issues.apache.org/activemq/browse/CAMEL-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1805. -------------------------------- Resolution: Fixed trunk: 791476. 1.x: 791478. > Timer component - setting time option from URI is missing a converter from > String to Date > ----------------------------------------------------------------------------------------- > > Key: CAMEL-1805 > URL: https://issues.apache.org/activemq/browse/CAMEL-1805 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 1.6.1, 2.0-M2 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 1.6.2, 2.0.0 > > > The {{time}} option expects a java.util.Date object, but is given a String > with the date. > Adding String -> Date converters in the TimerComponent directly so we can > convert it to a Date object. > Supports the following to patterns > {code} > sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); > } else { > sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); > {code} > And adding a new option {{pattern}} to allow you to specify the pattern in > the URI. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.