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

Robert Lazarski resolved AXIS2-5969.
------------------------------------
    Resolution: Fixed

> ConverterUtil.convertToDate(String source) sets DST_OFFSET to 0 even with no 
> timezone present
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5969
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5969
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.9
>            Reporter: Silwing
>            Assignee: Robert Lazarski
>            Priority: Major
>         Attachments: axis2-1.8.AXIS2-5969.patch
>
>
> This simple example demonstrates the issue:
>  
> {code:java}
> import org.apache.axis2.databinding.utils.ConverterUtil;
> public class Axis2ConverterUtil {
>       public static void main(String[] args) {
>               System.out.println(ConverterUtil.convertToDate("2019-08-01"));
>               System.out.println(ConverterUtil.convertToDate("2019-12-01"));  
>         
>       }
> }
> {code}
> For me with a default locale of CET (or CEST at the moment) it outputs this:
> {code:java}
> Thu Aug 01 01:00:00 CEST 2019
> Sun Dec 01 00:00:00 CET 2019
> {code}
> The time on the dates are 1 hour off due to setting DST_OFFSET to 0.
> Same kind of issue as AXIS2-4719 and AXIS2-5324



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to