Bug 162174 [Regression]Default value of datetime parameter is not selected
Default value of datetime parameter is not selected Steps to reproduce: 1.new a report and new a parameter 2.set the parameter data type"DateTime",display type"Radio Button" and new two parameters,the display text and value of the first are "this year" and "09/05/2006,the second is "last year" and "09/05/2005". Set the first one as the default value 3.preview in html Expected result: the default value is selected Actual result: the default value is not selected
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DateFormatISO8601.java
{
	
	private static Map simpleDateFormatterMap = null;
	static
	{
		
		
		String[] dateFormatPattern = {
				"yyyy-MM-dd HH:mm:ss.S z",
				"yyyy-MM-dd HH:mm:ss.Sz",
				"yyyy-MM-dd HH:mm:ss.S",
				"yyyy-MM-dd HH:mm:ss z",
				"yyyy-MM-dd HH:mm:ssz",
				"yyyy-MM-dd HH:mm:ss",
				"yyyy-MM-dd HH:mm z",
				"yyyy-MM-dd HH:mmz",
				"yyyy-MM-dd HH:mm",
				"yyyy-MM-dd",
				"yyyy-MM",
				"yyyy"
		};
		SimpleDateFormat simpleDateFormatter = null;
		PatternKey patterKey = null;
		simpleDateFormatterMap = new HashMap( 64 );
		for ( int i = 0; i < dateFormatPattern.length; i++ )
		{
			patterKey = getPatterKey( dateFormatPattern[i] );
			simpleDateFormatter = new SimpleDateFormat( dateFormatPattern[i] );
			simpleDateFormatter.setLenient( false );