axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rikard Swahn (JIRA)" <>
Subject [jira] Created: (AXIS2-4719) Wrong time when parsing time without time zone information.
Date Tue, 18 May 2010 08:41:43 GMT
Wrong time when parsing time without time zone information.

                 Key: AXIS2-4719
             Project: Axis2
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.5.1
         Environment: All
            Reporter: Rikard Swahn

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.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message