Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 56234 invoked from network); 6 Jul 2009 13:14:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 13:14:18 -0000 Received: (qmail 76159 invoked by uid 500); 6 Jul 2009 13:14:29 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 76122 invoked by uid 500); 6 Jul 2009 13:14:29 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 76112 invoked by uid 500); 6 Jul 2009 13:14:29 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 76109 invoked by uid 99); 6 Jul 2009 13:14:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 13:14:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 13:14:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F2FB234C004 for ; Mon, 6 Jul 2009 06:14:07 -0700 (PDT) Message-ID: <571322973.1246886047046.JavaMail.jira@brutus> Date: Mon, 6 Jul 2009 06:14:07 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-1805) Timer component - setting time option from URI is missing a converter from String to Date MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org 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.