[ 
https://issues.apache.org/jira/browse/AXIS2-4719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Veithen updated AXIS2-4719:
-----------------------------------

      Description: 
Functions public static Date convertToDate(String source) and public static 
Calendar convertToDateTime(String source) returns wrong time when parsing a 
data without timezone information.

When parsing a time without timezone set, default timezone is used, But, 
daylight saving is always set to zero (instead of using the local default 
daylight savings also). This gives the wrong time back when the local daylight 
savings is not zero.

The fix is to only set daylight savings to zero (   
calendar.set(Calendar.DST_OFFSET, 0);   ) when the time has time zone 
information.

  was:

Functions public static Date convertToDate(String source) and public static 
Calendar convertToDateTime(String source) returns wrong time when parsing a 
data without timezone information.

When parsing a time without timezone set, default timezone is used, But, 
daylight saving is always set to zero (instead of using the local default 
daylight savings also). This gives the wrong time back when the local daylight 
savings is not zero.

The fix is to only set daylight savings to zero (   
calendar.set(Calendar.DST_OFFSET, 0);   ) when the time has time zone 
information.

    Fix Version/s: 1.6.0

> Wrong time when parsing time without time zone information.
> -----------------------------------------------------------
>
>                 Key: AXIS2-4719
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4719
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>         Environment: All
>            Reporter: Rikard Swahn
>              Labels: daylight, local, savings, time, timezone, zone
>             Fix For: 1.6.0
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Functions public static Date convertToDate(String source) and public static 
> Calendar convertToDateTime(String source) returns wrong time when parsing a 
> data without timezone information.
> When parsing a time without timezone set, default timezone is used, But, 
> daylight saving is always set to zero (instead of using the local default 
> daylight savings also). This gives the wrong time back when the local 
> daylight savings is not zero.
> The fix is to only set daylight savings to zero (   
> calendar.set(Calendar.DST_OFFSET, 0);   ) when the time has time zone 
> information.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to