Bug 183546 Time parameter with format display wrong value.[0705]
Description: Time parameter with format display wrong value. Build number:2.2.0.v2007042309 Steps to reproduce: Chinese Locale. 1. New a report parameter, time type, input value as 04/23/2006 9:30:20 AM. 2. Click Change button, set format as mm:hh. 3. Drag the parameter to Layout and preview. Expected result: Display correct value Actual result: Display "1970 1 06:09" The value stored in config file is wrong. I saw <structure> <property name="name">time_6</property> <property name="value">06:09:00 AM</property> </structure> Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ParamDefTag.java
+ displayTextId + "\");\n" ); 
		writer
				.write( "var nullCtl = document.getElementById(\"" + nullValueId + "\");\n" ); 
		writer.write( "var label = option.text;\n" ); 
		writer.write( "var value = option.value;\n" ); 
		writer.write( "if( label == \"" + ITagConstants.NULL_VALUE + "\")\n" ); 
		writer.write( "{\n" ); 
		writer
				.write( "  if( nullCtl ) nullCtl.name=\"" + ParameterAccessor.PARAM_ISNULL 
						+ "\";\n" ); 
		writer.write( "  if( valCtl ) valCtl.name = '';\n" ); 
		writer.write( "  if( valCtl ) valCtl.value = '';\n" ); 
		writer.write( "  if( displayCtl ) displayCtl.value = '';\n" ); 
		writer.write( "  if( displayCtl ) displayCtl.name = '';\n" ); 
		writer.write( "}\n" ); 
		writer.write( "else\n" ); 
		writer.write( "{\n" ); 
		writer.write( "  if( nullCtl ) nullCtl.name='';\n" ); 
		writer
				.write( "  if( valCtl ) valCtl.name = \"" + encParamName + "\";\n" ); 
		writer.write( "  if( valCtl ) valCtl.value = value;\n" ); 		
		writer
				.write( "  if( displayCtl ) displayCtl.name = \"" + displayTextName + "\";\n" ); 
		writer.write( "  if( displayCtl ) displayCtl.value = label;\n" ); 
		writer.write( "}\n" ); 
		writer.write( "}\n" ); 
		writer.write( "</script>\n" ); 
		String onChange = "handleParam" + encParamId + "( this.options[this.selectedIndex] )"; 
		if ( !paramDef.mustMatch( ) )
		{