harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5469) [classlib][util] DateFormat.SHORT has different meaning on Harmony and RI.
Date Tue, 12 Feb 2008 07:16:08 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567984#action_12567984
] 

Pavel Pervov commented on HARMONY-5469:
---------------------------------------

Tony,

I'm sorry, I missed the test here.
------------------------------------
import java.util.Calendar;
import java.text.DateFormat;
import java.util.Locale;

class CalendarToString {
    public static void main(String[] args) {
	    Calendar cal = Calendar.getInstance(Locale.UK);
	    cal.clear();
	    cal.set(1997, 9, 13);

	    String formatted = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT,
Locale.UK)
	    		.format(cal.getTime());
	    if(formatted.equals("13/10/97 00:00")) {
	    	System.out.println("PASSED");
	   	} else {
	   	    System.out.println("FAILED: " + formatted);
	   	}
    }
}
------------------------------------
So, this is UK specific.

> [classlib][util] DateFormat.SHORT has different meaning on Harmony and RI.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-5469
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5469
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Pavel Pervov
>            Assignee: Tony Wu
>             Fix For: 5.0M5
>
>
> RI assumes it is 'dd/mm/yy hh:mm' and Harmony treats it as 'dd/mm/yyyy hh:mm'.
> The problem may be in underlying ICU implementation of *Format classes.

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