Bug 158947 the error of the datetime type conversion
Description: Now we input "Jan 13, 2003 12:00 AM GMT0100" into the parameter as a default value. The time is not transformed base on the time zone "GMT0100". The time should be transformed. And the other form input e.g. "SUN Jan 13, 2003 12:00 AM GMT0100" should be identified correctly. Step to reproduce: 1. new a report and create a report parameter 2. choose the date type "DateTime" 3. input value "SUN Jan 13, 2003 12:00 AM GMT0100" as default value,ok to finish 4. error message appear 5. input value "SUN Jan 13, 2003 12:00 AM" and click ok Actuate result: the parameter value is still "01/13/2003 12:00:00 AM" Excepted result: the datetime value should be transformed base on the time zone.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
}
		
		return resultDate;
	}
	/**
	 * A temp solution to the adoption of ICU4J in BIRT. It is a simple
	 * delegation to toDateWithCheck( String, Locale ).
	 * 
	 * @param source
	 * @param locale
	 * @return Date
	 * @throws BirtException
	 */
	public static Date toDateWithCheck( String source, Locale locale )
			throws BirtException
	{
		return toDateWithCheck( source, ULocale.forLocale( locale ) );
	}
	/**
	 * Convert string to date with check.
	 * JDK may do incorrect converse, for example:
	 * 		2005/1/1 Local.US, format pattern is MM/dd/YY.
	 * Above conversion can be done without error, but obviously
	 * the result is not right. This method will do such a simple check,
	 * in DateFormat.SHORT case instead of all cases.
	 * 		Year is not lower than 0.
	 * 		Month is from 1 to 12.
	 * 		Day is from 1 to 31.  
	 * @param source
	 * @param locale