You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2009/06/18 20:58:07 UTC

[jira] Closed: (HARMONY-4628) [classlib][luni] When timezone changed for calendar, corresponding HOUR_OF_DAY value does not change properly

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

Mark Hindess closed HARMONY-4628.
---------------------------------


> [classlib][luni] When timezone changed for calendar, corresponding HOUR_OF_DAY value does not change properly
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4628
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4628
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>            Assignee: Mark Hindess
>
> The following test case will give different value on RI and Harmony:
> import java.util.Calendar;
> import java.util.Locale;
> import java.util.TimeZone;
> public class CalendarTest {
>     public static void main(String[] args) {
>         Calendar c = Calendar.getInstance(TimeZone.getTimeZone("Europe/London"),
>                 new Locale("zh", "CN"));
>         System.out.println(c.get(Calendar.HOUR_OF_DAY));
>         c.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
>         System.out.println(c.get(Calendar.HOUR_OF_DAY));
>     }
> }
> RI:
> 8
> 15
> HY:
> 8
> 8

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.