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
*
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.core.data;
import java.math.BigDecimal;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Time;
import java.sql.Timestamp;
import java.sql.Types;
import java.text.ParseException;
import java.util.Date;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.format.DateFormatter;
import org.eclipse.birt.core.i18n.ResourceConstants;
import org.eclipse.birt.core.i18n.ResourceHandle;
import org.eclipse.birt.core.script.JavascriptEvalUtil;
import com.ibm.icu.text.DateFormat;
import com.ibm.icu.text.SimpleDateFormat;
import com.ibm.icu.util.ULocale;
/**
 * A utility function The convert method converts the source object, which can
 * be any supported data type, into an object given specified type. If no
 * reasonable conversion can be made, throw a BirtException.
 */
public final class DataTypeUtil