You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "ANJANA (JIRA)" <ax...@ws.apache.org> on 2004/10/26 13:51:43 UTC

[jira] Created: (AXIS-1622) Time zone not deserialized properly

Time zone not deserialized properly
-----------------------------------

         Key: AXIS-1622
         URL: http://issues.apache.org/jira/browse/AXIS-1622
     Project: Axis
        Type: Bug
    Reporter: ANJANA


Hi,

I have an issue using java.util.Calendar.I don't know whether it is a 
bug or an issue in my code.

if it is an issue,could you please mail me how to resolve it?

The generated java file uses java.util.Calendar for displaying 
datetime.

The datetime is displayed in users LOCAL datetime.

Is there anyway to avoid this?.

I want the datetime to be displayed as it is in the database.

I don't want it to be converted to LOCAL time.

Any ides/suggestions would greatly be helpful for me.

Thanks,


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1622) Time zone not deserialized properly

Posted by "Steve Loughran (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1622?page=comments#action_54675 ]
     
Steve Loughran commented on AXIS-1622:
--------------------------------------

all handing of time in SOAP is unreliable, esp between .NET and java. 

I always send times as seconds since 1/1/1970 in UTC timezone, and leave it to recipients to convert their local representation.

this doesnt help you directly, but it is the only sensible way I have found to work with time.

> Time zone not deserialized properly
> -----------------------------------
>
>          Key: AXIS-1622
>          URL: http://issues.apache.org/jira/browse/AXIS-1622
>      Project: Axis
>         Type: Bug
>     Reporter: ANJANA

>
> Hi,
> I have an issue using java.util.Calendar.I don't know whether it is a 
> bug or an issue in my code.
> if it is an issue,could you please mail me how to resolve it?
> The generated java file uses java.util.Calendar for displaying 
> datetime.
> The datetime is displayed in users LOCAL datetime.
> Is there anyway to avoid this?.
> I want the datetime to be displayed as it is in the database.
> I don't want it to be converted to LOCAL time.
> Any ides/suggestions would greatly be helpful for me.
> Thanks,

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (AXIS-1622) Time zone not deserialized properly

Posted by Ezhil Gowthaman <ez...@yahoo.com>.
Hi Ashutosh,
Thanks for the quick response.
Actually I have four databases in different States(having different time zones).
I can't use calendar.setTimeZone(java.util.TimeZone.getDefault()); in my client code (Swing code),
as it would still give the Time in client's timezone.
The WSDL2Java uses java.util.Calendar and JavatoWSDL uses xsd:time mapped to java.util.Date in
the backend code.
We can't use a standard time zone.
Is there any way round to display the database time (for the client) without specifying the timezone?.
Any ideas/suggestions would be greatly helpful for me.
Thanks in advance,

"Ashutosh Shahi (JIRA)" <ax...@ws.apache.org> wrote:
[ http://issues.apache.org/jira/browse/AXIS-1622?page=comments#action_54661 ]

Ashutosh Shahi commented on AXIS-1622:
--------------------------------------

You can use Calendar.setTimeZone method to set the TimeZone used by the database. Hope that helps.
Ashutosh

> Time zone not deserialized properly
> -----------------------------------
>
> Key: AXIS-1622
> URL: http://issues.apache.org/jira/browse/AXIS-1622
> Project: Axis
> Type: Bug
> Reporter: ANJANA

>
> Hi,
> I have an issue using java.util.Calendar.I don't know whether it is a 
> bug or an issue in my code.
> if it is an issue,could you please mail me how to resolve it?
> The generated java file uses java.util.Calendar for displaying 
> datetime.
> The datetime is displayed in users LOCAL datetime.
> Is there anyway to avoid this?.
> I want the datetime to be displayed as it is in the database.
> I don't want it to be converted to LOCAL time.
> Any ides/suggestions would greatly be helpful for me.
> Thanks,

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

[jira] Commented: (AXIS-1622) Time zone not deserialized properly

Posted by "Ashutosh Shahi (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1622?page=comments#action_54661 ]
     
Ashutosh Shahi commented on AXIS-1622:
--------------------------------------

You can use Calendar.setTimeZone method to set the TimeZone used by the database. Hope that helps.
Ashutosh

> Time zone not deserialized properly
> -----------------------------------
>
>          Key: AXIS-1622
>          URL: http://issues.apache.org/jira/browse/AXIS-1622
>      Project: Axis
>         Type: Bug
>     Reporter: ANJANA

>
> Hi,
> I have an issue using java.util.Calendar.I don't know whether it is a 
> bug or an issue in my code.
> if it is an issue,could you please mail me how to resolve it?
> The generated java file uses java.util.Calendar for displaying 
> datetime.
> The datetime is displayed in users LOCAL datetime.
> Is there anyway to avoid this?.
> I want the datetime to be displayed as it is in the database.
> I don't want it to be converted to LOCAL time.
> Any ides/suggestions would greatly be helpful for me.
> Thanks,

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira