<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Apache CXF DateTime Converter with different Timezone</title><link>https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone</link><description>&lt;p&gt;We have a simple WSDL which holds a datetime attribute. This attribute is converted correctly by the CXF library and holds the Ivy DateTime format in the generated ws class. When we pass a datetime into the ws call, the datetime is formatted as &lt;code&gt;2018-11-26T12:56:52+01:00&lt;/code&gt; but the ws provider (in our case SAP) needs the datetime within the UTC timezone, like: &lt;code&gt;2018-11-26T12:56:52Z&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;How can we change the format?
Is there a simple way, for example to pass the timezone to the Ivy DateTime object?
...or pass a SimpleDateFormat object for the string formatting?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 26 Nov 2018 10:24:10 -0500</lastBuildDate><item><title>Comment by Adrian Imfeld on SupportIvyTeam's answer</title><link>https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone#3563</link><description>&lt;p&gt;Yes it would work to "manipulate" the wsdl locally...
So there is know way for this in the new CXF library, so far...?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian Imfeld</dc:creator><pubDate>Mon, 26 Nov 2018 10:24:10 -0500</pubDate><guid>https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone#3563</guid></item><item><title>Answer by SupportIvyTeam</title><link>https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone/3562</link><description>&lt;p&gt;May be the easiest way is to just send a String with the correct format.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SupportIvyTeam</dc:creator><pubDate>Mon, 26 Nov 2018 10:15:29 -0500</pubDate><guid>https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone/3562</guid></item><item><title>Comment by Adrian Imfeld on Adrian Imfeld's question</title><link>https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone#3561</link><description>&lt;p&gt;This question is maybe relatet to this question: &lt;a href="https://answers.axonivy.com/questions/1952/axis2-date-converter"&gt;https://answers.axonivy.com/questions/1952/axis2-date-converter&lt;/a&gt;
But we are looking for a simple way to do this in the new CXF library.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian Imfeld</dc:creator><pubDate>Mon, 26 Nov 2018 09:34:14 -0500</pubDate><guid>https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone#3561</guid></item></channel></rss>