You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "spark shen (JIRA)" <ji...@apache.org> on 2007/08/14 10:03:30 UTC
[jira] Created: (HARMONY-4628) [classlib][Calendar] When timezone
changed for calendar, corresponding HOUR_OF_DAY value does not change
properly
[classlib][Calendar] 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
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.
[jira] Updated: (HARMONY-4628) [classlib][luni] When timezone
changed for calendar, corresponding HOUR_OF_DAY value does not change
properly
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stepan Mishura updated HARMONY-4628:
------------------------------------
Summary: [classlib][luni] When timezone changed for calendar, corresponding HOUR_OF_DAY value does not change properly (was: [classlib][Calendar] When timezone changed for calendar, corresponding HOUR_OF_DAY value does not change properly)
> [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
>
> 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.
[jira] Resolved: (HARMONY-4628) [classlib][luni] When timezone
changed for calendar, corresponding HOUR_OF_DAY value does not change
properly
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess resolved HARMONY-4628.
-----------------------------------
Resolution: Fixed
Assignee: Mark Hindess
This works now on DRLVM and IBM VME on linux.
> [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.
[jira] Closed: (HARMONY-4628) [classlib][luni] When timezone
changed for calendar, corresponding HOUR_OF_DAY value does not change
properly
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ 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.