svn changeset:6909/svn branch:trunk
if (sender == text) {\r
if (!text.getText().equals("")) {\r
try {\r
- date = DateTimeFormat.getFormat(getFormatString()).parse(\r
- text.getText());\r
+ DateTimeFormat format = DateTimeFormat\r
+ .getFormat(getFormatString());\r
+ date = format.parse(text.getText());\r
+ long stamp = date.getTime();\r
+ if (stamp == 0) {\r
+ // If date parsing fails in firefox the stamp will be 0\r
+ date = null;\r
+ }\r
+\r
// remove possibly added invalid value indication\r
removeStyleName(PARSE_ERROR_CLASSNAME);\r
} catch (final Exception e) {\r