Hi All,

 

Does anyone know of a way to suppress timeZone offsets when marshalling a java.util.Date.

 

We unmarshall the following field

 

<dlx:FlightSegment DepartureDateTime="2005-06-04T11:45:00.000"

ArrivalDateTime="2005-06-03T22:30:00.000+01:00" ResBookDesigCode="Y"

RPH="0" FlightNumber="9566" NumberInParty="1">

 

Then marshall back and the castor marshaller adds the daylight saving timezone offset of +01:00 to the

DepartureDateTime field.

 

<dlx:FlightSegment DepartureDateTime="2005-06-04T11:45:00.000+01:00"

ArrivalDateTime="2005-06-03T22:30:00.000+01:00" ResBookDesigCode="Y"

RPH="0" FlightNumber="9566" NumberInParty="1">

 

This causes problems when we pass messages between machines in different timezones , as the marshaller

Adjusts the timezone accordingly and  changes the time

 

Example below

> Request from time zone A:

> <dlx:FlightSegment DepartureDateTime="2005-06-04T11:45:00.000+01:00"

> ArrivalDateTime="2005-06-03T22:30:00.000+01:00" ResBookDesigCode="Y"

> RPH="0" FlightNumber="9566" NumberInParty="1">

 

> Server Response from time zone B:

> <ns2:FlightSegment DepartureDateTime="2005-06-04T20:45:00.000+10:00"

> ArrivalDateTime="2005-06-04T07:30:00.000+10:00" ResBookDesigCode="Y"

> RPH="0" FlightNumber="9566" NumberInParty="1">

 

DepartureDateTime has changed L

 

Any suggestions.?

 

Regards,

 

Stephen Burrows

 

Reply via email to