Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 853 for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/mdconstruction/FormAMDFactory_SimpleDate.java

Diff revisions: vs.
  @@ -13,8 +13,8 @@
13 13
14 14 public AMDconverterPair createAttributeMetaData( CreateAMDParamsPlus pParams )
15 15 {
16 - String zDateFormat = pParams.getHintValue( DATE_FORMAT, DateFormatControl.DEFAULT_DATE_FORMAT );
17 - return new AMDconverterPair( new SendableSimpleDateConverter( zDateFormat ),
16 + DateFormat zDateFormat = new DateFormat( pParams.getHintValue( DATE_FORMAT, DateFormat.DEFAULT_YMD_FORMAT ) );
17 + return new AMDconverterPair( new SendableSimpleDateConverter( zDateFormat.getDateRes() ),
18 18 new SimpleDateMetaData( pParams.getUsage(), pParams.isDisabled(), //
19 19 pParams.getHints(), //
20 20 pParams.getFieldLabel(), //
  @@ -23,6 +23,6 @@
23 23 pParams.getErrorTextForRequired(), //
24 24 pParams.resolveAction( "Cancel" ), //
25 25 pParams.resolveAction( "Today" ), //
26 - new DateFormatControl( zDateFormat ) ) );
26 + zDateFormat ) );
27 27 }
28 28 }