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 "Robert Lazarski (Jira)" <ji...@apache.org> on 2019/10/21 01:03:00 UTC
[jira] [Assigned] (AXIS2-5969) ConverterUtil.convertToDate(String
source) sets DST_OFFSET to 0 even with no timezone present
[ https://issues.apache.org/jira/browse/AXIS2-5969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Lazarski reassigned AXIS2-5969:
--------------------------------------
Assignee: Robert Lazarski
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org