[ https://issues.apache.org/jira/browse/HARMONY-5468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567310#action_12567310
]
Tony Wu commented on HARMONY-5468:
----------------------------------
It caused by difference of SimpleDateFormat. I think it is a bug of ICU since spec says that
it should return GMT+/-offset if the timezone does not have a name.
> [classlib][util] java.util.Date.toString outputs real time zone name on RI, but prints
GMT<+/-offset> on Harmony.
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-5468
> URL: https://issues.apache.org/jira/browse/HARMONY-5468
> Project: Harmony
> Issue Type: Bug
> Environment: All
> Reporter: Pavel Pervov
> Assignee: Tony Wu
> Fix For: 5.0M5
>
>
> The fllowing test demonstrates the behaviour:
> --------------------------
> import java.util.TimeZone;
> import java.util.Date;
> class DateToString {
> public static void main(String[] args) {
> TimeZone tz = TimeZone.getDefault();
> tz.setDefault(tz.getTimeZone("MST"));
> System.out.println(new Date(104, 2, 13));
> }
> }
> --------------------------
> It looks like the problem may be in ICU's SimpleTimeZone pattern processing code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|