You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Pervov (JIRA)" <ji...@apache.org> on 2008/05/22 16:37:56 UTC
[jira] Updated: (HARMONY-5459) [classlib][util] default TimeZone
ignores raw offset after switch to ICU.
[ https://issues.apache.org/jira/browse/HARMONY-5459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Pervov updated HARMONY-5459:
----------------------------------
Priority: Minor (was: Major)
Lowering the priority because it looks like nobody's affected.
> [classlib][util] default TimeZone ignores raw offset after switch to ICU.
> -------------------------------------------------------------------------
>
> Key: HARMONY-5459
> URL: https://issues.apache.org/jira/browse/HARMONY-5459
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Linux x86-64
> Reporter: Pavel Pervov
> Assignee: Tony Wu
> Priority: Minor
> Fix For: 5.0M5
>
> Attachments: H5459.patch
>
>
> The following test fails on Harmony but passes on RI.
> ------------------
> import java.util.TimeZone;
> class TimeZoneTest {
> public static void main(String[] args) {
> TimeZone tz1 = (TimeZone)TimeZone.getDefault();
> System.out.println(tz1);
> int fourHours = 4*60*60*1000;
> tz1.setRawOffset(fourHours);
> System.out.println(tz1);
> if(tz1.getOffset(1, 2000, 01, 1, 7, 0) == fourHours) {
> System.out.println("PASSED");
> } else {
> System.out.println("FAILED: rawOffset is ignored");
> }
> }
> }
> ------------------
> I'll attach simple patch to fix this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.