You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Chris Means <cm...@empowergeo.com> on 2002/01/12 02:41:55 UTC
How are you handling dates?
It seems as though the java.util.Date class is serializing dates in the
local time zone, rather than the depicted Zulu time (GMT/UTC).
Is anyone else doing Apache-SOAP development where they have to handle time
zone issues?
I'm storing everything in the backend database in GMT, so the middle tier
expects to send and recieve all date/times in GMT.
It's a client function to convert to the locale time if they need to.
My problem is that unless I set the middle tier machine's time zone to GMT,
dates keep on getting serialized into CST (my local time zone).
Can anyone shed any light on this?
TIA.
-Chris
RE: How are you handling dates?
Posted by "Hung D. Viet" <di...@epiqus.com>.
Chris,
If you look at the DateSerializer class, you'll see that it is implemented
using default local timezone. You can create a similar serializer for your
own use.
Hope this help,
cheers,
Hung
-----Original Message-----
From: Chris Means [mailto:cmeans@empowergeo.com]
Sent: Saturday, January 12, 2002 9:42 AM
To: soap-user@xml.apache.org
Subject: How are you handling dates?
It seems as though the java.util.Date class is serializing dates in the
local time zone, rather than the depicted Zulu time (GMT/UTC).
Is anyone else doing Apache-SOAP development where they have to handle time
zone issues?
I'm storing everything in the backend database in GMT, so the middle tier
expects to send and recieve all date/times in GMT.
It's a client function to convert to the locale time if they need to.
My problem is that unless I set the middle tier machine's time zone to GMT,
dates keep on getting serialized into CST (my local time zone).
Can anyone shed any light on this?
TIA.
-Chris
RE: How are you handling dates?
Posted by Chris Means <cm...@empowergeo.com>.
It's a "bug" in the DateSerializer class.
One of the developers left commented a statement that would set the time
zone to "GMT/UTC" correctly.
-Chris
> -----Original Message-----
> From: Chris Means [mailto:cmeans@empowergeo.com]
> Sent: Friday, January 11, 2002 7:42 PM
> To: soap-user@xml.apache.org
> Subject: How are you handling dates?
>
>
> It seems as though the java.util.Date class is serializing dates in the
> local time zone, rather than the depicted Zulu time (GMT/UTC).
>
> Is anyone else doing Apache-SOAP development where they have to
> handle time
> zone issues?
>
> I'm storing everything in the backend database in GMT, so the middle tier
> expects to send and recieve all date/times in GMT.
>
> It's a client function to convert to the locale time if they need to.
>
> My problem is that unless I set the middle tier machine's time
> zone to GMT,
> dates keep on getting serialized into CST (my local time zone).
>
> Can anyone shed any light on this?
>
> TIA.
>
> -Chris
>
RE: How are you handling dates?
Posted by "Hung D. Viet" <di...@epiqus.com>.
Chris,
If you look at the DateSerializer class, you'll see that it is implemented
using default local timezone. You can create a similar serializer for your
own use.
Hope this help,
cheers,
Hung
-----Original Message-----
From: Chris Means [mailto:cmeans@empowergeo.com]
Sent: Saturday, January 12, 2002 9:42 AM
To: soap-user@xml.apache.org
Subject: How are you handling dates?
It seems as though the java.util.Date class is serializing dates in the
local time zone, rather than the depicted Zulu time (GMT/UTC).
Is anyone else doing Apache-SOAP development where they have to handle time
zone issues?
I'm storing everything in the backend database in GMT, so the middle tier
expects to send and recieve all date/times in GMT.
It's a client function to convert to the locale time if they need to.
My problem is that unless I set the middle tier machine's time zone to GMT,
dates keep on getting serialized into CST (my local time zone).
Can anyone shed any light on this?
TIA.
-Chris
RE: How are you handling dates?
Posted by Chris Means <cm...@empowergeo.com>.
It's a "bug" in the DateSerializer class.
One of the developers left commented a statement that would set the time
zone to "GMT/UTC" correctly.
-Chris
> -----Original Message-----
> From: Chris Means [mailto:cmeans@empowergeo.com]
> Sent: Friday, January 11, 2002 7:42 PM
> To: soap-user@xml.apache.org
> Subject: How are you handling dates?
>
>
> It seems as though the java.util.Date class is serializing dates in the
> local time zone, rather than the depicted Zulu time (GMT/UTC).
>
> Is anyone else doing Apache-SOAP development where they have to
> handle time
> zone issues?
>
> I'm storing everything in the backend database in GMT, so the middle tier
> expects to send and recieve all date/times in GMT.
>
> It's a client function to convert to the locale time if they need to.
>
> My problem is that unless I set the middle tier machine's time
> zone to GMT,
> dates keep on getting serialized into CST (my local time zone).
>
> Can anyone shed any light on this?
>
> TIA.
>
> -Chris
>