Actually, one *ugly* way that springs to mind is to adjust the offset by -1 to remove an hour from the time..
I use a processor which sets a date property (CALC_DATE) which allows passing in a number of values to manipulate the date ( round to date field, add date field, add amount ) (concerned about more than just hours). On Tue, Dec 6, 2011 at 11:31 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > On Tue, Dec 6, 2011 at 11:57 PM, Castyn <eric.ben...@gmail.com> wrote: > > Is there a way to do it simply through the spring DSL though? > > > > Not from Camel itself. You would need to use a scripting language. Or > create a java bean, that returns the date, and then use the > bean/method call expression from the Spring DSL. > > > I guess I could create a custom processor that just passes on the headers > > and body after adding a new header with this code in it, but that seems > like > > overkill for this situation. > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/Date-String-Creation-tp5052753p5053745.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: cib...@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ > -- ------------------------------------------- Craig Taylor ctalk...@ctalkobt.net