harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharindu Mathew (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5909) Incorrect values with Asia/Colombo Time Zone
Date Sat, 12 Jul 2008 07:42:31 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613057#action_12613057
] 

Tharindu Mathew commented on HARMONY-5909:
------------------------------------------

The TimeZones getTimeZone() method has incorrect values entered for "Asia/Colombo":

new SimpleTimeZone(6 * ONE_HOUR, "Asia/Colombo")

which should be.

new SimpleTimeZone(5.5 * ONE_HOUR, "Asia/Colombo")

but this cannot be fixed because it does not allow float as arguments, and the constructor
uses com.ibm.icu.util Classes which cannot be modified:

    public SimpleTimeZone(int offset, String name) {
        setID(name);
        rawOffset = offset;
        icuTZ = com.ibm.icu.util.TimeZone.getTimeZone(name);
        if (icuTZ instanceof com.ibm.icu.util.SimpleTimeZone) {
            isSimple = true;
            icuTZ.setRawOffset(offset);
        }
        useDaylight = icuTZ.useDaylightTime();
    }


> Incorrect values with Asia/Colombo Time Zone
> --------------------------------------------
>
>                 Key: HARMONY-5909
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5909
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tharindu Mathew
>


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