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 2006/08/04 11:07:15 UTC
[jira] Resolved: (HARMONY-501) Date year output needs updating for
5.0
[ http://issues.apache.org/jira/browse/HARMONY-501?page=all ]
Mark Hindess resolved HARMONY-501.
----------------------------------
Resolution: Fixed
Applied patch in r428669. Please check it has been applied as expected.
> Date year output needs updating for 5.0
> ---------------------------------------
>
> Key: HARMONY-501
> URL: http://issues.apache.org/jira/browse/HARMONY-501
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assigned To: Mark Hindess
> Priority: Minor
> Attachments: harmony-501.patch
>
>
> 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