Author: hoang_to
Date: 2010-08-11 00:11:03 -0400 (Wed, 11 Aug 2010)
New Revision: 3795
Modified:
portal/branches/branched-r3776/webui/core/src/main/java/org/exoplatform/webui/form/validator/DateTimeValidator.java
Log:
Apply patch for GTNPORTAL-1305
Modified:
portal/branches/branched-r3776/webui/core/src/main/java/org/exoplatform/webui/form/validator/DateTimeValidator.java
===================================================================
---
portal/branches/branched-r3776/webui/core/src/main/java/org/exoplatform/webui/form/validator/DateTimeValidator.java 2010-08-11
01:19:02 UTC (rev 3794)
+++
portal/branches/branched-r3776/webui/core/src/main/java/org/exoplatform/webui/form/validator/DateTimeValidator.java 2010-08-11
04:11:03 UTC (rev 3795)
@@ -73,17 +73,16 @@
{
// Specify whether or not date/time parsing is to be lenient.
sdf.setLenient(false);
- Date stDate = sdf.parse(s);
- s = stFormat.format(stDate);
+ sdf.parse(s);
}
catch (Exception e)
{
- throw new MessageException(new
ApplicationMessage("DateTimeValidator.msg.Invalid-input", args));
+ throw new MessageException(new
ApplicationMessage("DateTimeValidator.msg.Invalid-input", args,
ApplicationMessage.WARNING));
}
if (s.matches(DATETIME_REGEX) && isValidDateTime(s))
return;
- throw new MessageException(new
ApplicationMessage("DateTimeValidator.msg.Invalid-input", args));
+ throw new MessageException(new
ApplicationMessage("DateTimeValidator.msg.Invalid-input", args,
ApplicationMessage.WARNING));
}
private boolean isValidDateTime(String dateTime)
Show replies by date