You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2008/02/09 15:52:07 UTC

[jira] Resolved: (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 ]

Tony Wu resolved HARMONY-5459.
------------------------------

    Resolution: Fixed

Patch applied at r620129 with testcase. thanks for your contribution, please verify if it fixed as you expected.
Note that setRowOffset only has effect for the current year and beyond.

> [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: All
>            Reporter: Pavel Pervov
>            Assignee: Tony Wu
>             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.