You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2010/03/23 14:39:27 UTC

[jira] Closed: (HARMONY-4904) [classlib][luni]Date.getTimezoneOffset return wrong value

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

Mark Hindess closed HARMONY-4904.
---------------------------------


Closing.


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