Subversion Repository Public Repository

litesoft

Diff Revisions 852 vs 853 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/impls/input/FormDatePicker.java

Diff revisions: vs.
  @@ -34,8 +34,9 @@
34 34 protected Object parseNotEmptyTextFieldToInternalForm( String pText, Object pLastValidInternalFormValue )
35 35 throws IllegalArgumentException
36 36 {
37 - UtilDateAdaptor zInadequatePartsSource = (pLastValidInternalFormValue instanceof SimpleDate) ? ((SimpleDate) pLastValidInternalFormValue).toUtilDateAdaptor() : null;
38 - return mTemporalParser.parseDate( mDateFormat.getFormat(), pText, zInadequatePartsSource );
37 + UtilDateAdaptor zInadequatePartsSource =
38 + (pLastValidInternalFormValue instanceof SimpleDate) ? ((SimpleDate) pLastValidInternalFormValue).toUtilDateAdaptor() : null;
39 + return mTemporalParser.parseDate( pText, mDateFormat.getDateRes(), zInadequatePartsSource );
39 40 }
40 41
41 42 @Override
  @@ -46,7 +47,7 @@
46 47
47 48 if ( value != null )
48 49 {
49 - setTextValueFromPicker( new SimpleDate( mDateFormat, value ).toString() );
50 + setTextValueFromPicker( mDateFormat.format( new SimpleDate( mDateFormat.getDateRes(), value ) ) );
50 51 }
51 52 }
52 53