You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/07/06 15:14:07 UTC
[jira] Created: (CAMEL-1805) Timer component - setting time option
from URI is missing a converter from String to Date
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: 2.0-M2, 1.6.1
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.
[jira] Updated: (CAMEL-1805) Timer component - setting time option
from URI is missing a converter from String to Date
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hadrian Zbarcea updated CAMEL-1805:
-----------------------------------
Fix Version/s: (was: 2.0.0)
2.0-M3
> 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-M3
>
>
> 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.
[jira] Resolved: (CAMEL-1805) Timer component - setting time option
from URI is missing a converter from String to Date
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.