camel-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CAMEL-11982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16258406#comment-16258406
] 

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 build.apache.org there are always these failures:
{code}
org.junit.ComparisonFailure: expected:<149313[24]10000> but was:<149313[96]10000>
	at org.apache.camel.component.jackson.JacksonMarshalDateTimezoneTest.testMarshalDate(JacksonMarshalDateTimezoneTest.java:44)

org.junit.ComparisonFailure: expected:<<Date>149313[24]10000</Date>> but
was:<<Date>149313[96]10000</Date>>
	at org.apache.camel.component.jacksonxml.JacksonMarshalDateTimezoneTest.testMarshalDate(JacksonMarshalDateTimezoneTest.java:44)
{code}

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: https://issues.apache.org/jira/browse/CAMEL-11982
>             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
(v6.4.14#64029)

Mime
View raw message