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] Created: (HARMONY-501) Date year output needs updating for 5.0
Date Wed, 24 May 2006 13:34:29 GMT
Date year output needs updating for 5.0
---------------------------------------

         Key: HARMONY-501
         URL: http://issues.apache.org/jira/browse/HARMONY-501
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: Mark Hindess
    Priority: Minor


Thought I'd raise this since I spotted it while looking at another problem and it might easily
be overlooked.   The following test code outputs:

date = 'Wed Jan 01 00:00:00 GMT 21'
date = 'Sun Jan 01 00:00:00 GMT 321'

on a 5.0 RI but Harmony still outputs the 1.4 RI version:

date = 'Wed Jan 01 00:00:00 GMT 0021'
date = 'Sun Jan 01 00:00:00 GMT 0321'


import java.util.Calendar;
import java.util.Locale;

public class Test {

    public static void main(String[] args) {
        Locale.setDefault(new Locale("en_GB"));
        Calendar c = Calendar.getInstance();
        c.clear();
        c.set(Calendar.YEAR, 21);
        System.out.println("date = '"+c.getTime()+"'");
        c.set(Calendar.YEAR, 321);
        System.out.println("date = '"+c.getTime()+"'");
    }    
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message