Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 65057 invoked from network); 18 Jun 2009 18:58:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 18:58:19 -0000 Received: (qmail 8877 invoked by uid 500); 18 Jun 2009 18:58:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 8800 invoked by uid 500); 18 Jun 2009 18:58:29 -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 8784 invoked by uid 99); 18 Jun 2009 18:58:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 18:58:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 18:58:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6F0A3234C1E7 for ; Thu, 18 Jun 2009 11:58:07 -0700 (PDT) Message-ID: <562499833.1245351487454.JavaMail.jira@brutus> Date: Thu, 18 Jun 2009 11:58:07 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4628) [classlib][luni] When timezone changed for calendar, corresponding HOUR_OF_DAY value does not change properly In-Reply-To: <27645304.1187078610353.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess closed HARMONY-4628. --------------------------------- > [classlib][luni] When timezone changed for calendar, corresponding HOUR_OF_DAY value does not change properly > ------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4628 > URL: https://issues.apache.org/jira/browse/HARMONY-4628 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: spark shen > Assignee: Mark Hindess > > The following test case will give different value on RI and Harmony: > import java.util.Calendar; > import java.util.Locale; > import java.util.TimeZone; > public class CalendarTest { > public static void main(String[] args) { > Calendar c = Calendar.getInstance(TimeZone.getTimeZone("Europe/London"), > new Locale("zh", "CN")); > System.out.println(c.get(Calendar.HOUR_OF_DAY)); > c.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai")); > System.out.println(c.get(Calendar.HOUR_OF_DAY)); > } > } > RI: > 8 > 15 > HY: > 8 > 8 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.