harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-4904) [classlib][luni]Date.getTimezoneOffset return wrong value
Date Tue, 23 Mar 2010 13:39:27 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Hindess resolved HARMONY-4904.
-----------------------------------

    Resolution: Fixed

This test case now passes for me.  Resolving.


> [classlib][luni]Date.getTimezoneOffset return wrong value
> ---------------------------------------------------------
>
>                 Key: HARMONY-4904
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4904
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: harmony-jre-579330
> WindowsXP
>            Reporter: Chen Shunfei
>            Assignee: Jimmy, Jing Lv
>            Priority: Minor
>         Attachments: HARMONY-4904.diff
>
>
> Here is the TestCase:
> import java.util.TimeZone;
> import java.util.Date;
> import junit.framework.TestCase;
> public class TestGetTimezoneOffset extends TestCase {
> 	public void testGetTimezoneOffset() {
> 		TimeZone.setDefault(TimeZone.getTimeZone("America/Toronto"));
> 		Date date = new Date(07,2,24);
> 		assertEquals(300,date.getTimezoneOffset());
> 		date = new Date(99,8,1);
> 		assertEquals(240,date.getTimezoneOffset());
> 	}
> }

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