harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Shunfei (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4904) [classlib][luni]Date.getTimezoneOffset return wrong value
Date Mon, 08 Oct 2007 08:38:50 GMT
[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
            Priority: Minor


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