Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 39326 invoked from network); 5 Feb 2008 16:44:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 16:44:31 -0000 Received: (qmail 57292 invoked by uid 500); 5 Feb 2008 16:44:23 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 57261 invoked by uid 500); 5 Feb 2008 16:44:23 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 57248 invoked by uid 99); 5 Feb 2008 16:44:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 08:44:23 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 16:44:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51D9F714072 for ; Tue, 5 Feb 2008 08:44:09 -0800 (PST) Message-ID: <13157320.1202229849332.JavaMail.jira@brutus> Date: Tue, 5 Feb 2008 08:44:09 -0800 (PST) From: "Pavel Pervov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5459) [classlib][util] default TimeZone ignores raw offset after switch to ICU. In-Reply-To: <512930.1202229608624.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pavel Pervov updated HARMONY-5459: ---------------------------------- Attachment: H5459.patch Here is the patch to fix the issue. SimpleTimeZone didn't pass rawOffset value to ICU and subsequent call to icuTZ.getOffset returned old value. > [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 > 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.