harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-4628) [classlib][luni] When timezone changed for calendar, corresponding HOUR_OF_DAY value does not change properly
Date Thu, 18 Jun 2009 18:58:07 GMT

     [ 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.


Mime
View raw message