Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 85439 invoked from network); 27 Nov 2007 14:41:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2007 14:41:10 -0000 Received: (qmail 11107 invoked by uid 500); 27 Nov 2007 14:40:57 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 11091 invoked by uid 500); 27 Nov 2007 14:40:57 -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 11059 invoked by uid 99); 27 Nov 2007 14:40:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Nov 2007 06:40:57 -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, 27 Nov 2007 14:41:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A712971422C for ; Tue, 27 Nov 2007 06:40:43 -0800 (PST) Message-ID: <21414440.1196174443682.JavaMail.jira@brutus> Date: Tue, 27 Nov 2007 06:40:43 -0800 (PST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-5195) [classlib][luni] java.util.Calendar doesn't recalculate fields after timeZone changing. In-Reply-To: <5007787.1196095123313.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-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison closed HARMONY-5195. -------------------------------- Verified by Sergey. > [classlib][luni] java.util.Calendar doesn't recalculate fields after timeZone changing. > --------------------------------------------------------------------------------------- > > Key: HARMONY-5195 > URL: https://issues.apache.org/jira/browse/HARMONY-5195 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Sergey Kuksenko > Assignee: Tim Ellison > Priority: Minor > Attachments: calendar.patch, Greg_calendar_test3.patch > > > java.util.Calendar doesn't recalculate fields after timeZone changing. > For example: > Calendar c1 = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 34, 16); > c1.setTimeZone(new SimpleTimeZone(60000, "ONE MINUTE")); > String res = c1.get(Calendar.HOUR)+":"+c1.get(Calendar.MINUTE)+":"+c1.get(Calendar.SECOND); > After that Harmony returns "3:34:16" instead of "11:35:16" as RI does. > Patch for unit teste for regression testing is done. > Patch for the issue is done (also the patch slightly improve performance when calendar already parsed time). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.