camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <>
Subject [jira] [Commented] (CAMEL-11982) camel-jackson - Allow to configure timezone
Date Sun, 19 Nov 2017 09:34:00 GMT


Pascal Schumacher commented on CAMEL-11982:

[~ancosen] The tests added for this feature (JacksonMarshalDateTimezoneTest in camel-jackson
and camel-jackson-xml) only pass when the JVM uses the UTC+1 timezone.

E.g. on there are always these failures:
org.junit.ComparisonFailure: expected:<149313[24]10000> but was:<149313[96]10000>
	at org.apache.camel.component.jackson.JacksonMarshalDateTimezoneTest.testMarshalDate(

org.junit.ComparisonFailure: expected:<<Date>149313[24]10000</Date>> but
	at org.apache.camel.component.jacksonxml.JacksonMarshalDateTimezoneTest.testMarshalDate(

I can replicated this locally by stetting the timezone e.g. "-Duser.timezone=UTC".

It would be nice if you could have a look. Thanks!

> camel-jackson - Allow to configure timezone
> -------------------------------------------
>                 Key: CAMEL-11982
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jackson, camel-jacksonxml
>            Reporter: Claus Ibsen
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 2.21.0
> Sometimes users may want to configure a different timezone than what what jackson uses
by default.
> You can configure this on ObjectMapper. But if that is the only configuration you need,
then we could make this option configurable as a option on the data format as well.
> Mind that json dataformat is shared for xstream,gson etc and some of them may not have
timezone configuration.

This message was sent by Atlassian JIRA

View raw message