Skip to content
Snippets Groups Projects
Commit 6b755634 authored by cramakri's avatar cramakri
Browse files

LMS-1459 Added support for M/d/yy HH:mm timestamp format + test.

SVN: 15239
parent 7f36db9c
No related branches found
No related tags found
No related merge requests found
...@@ -59,9 +59,11 @@ public final class PropertyValidator implements IPropertyValueValidator ...@@ -59,9 +59,11 @@ public final class PropertyValidator implements IPropertyValueValidator
SECONDS_DATE_PATTERN("yyyy-MM-dd HH:mm:ss"), SECONDS_DATE_PATTERN("yyyy-MM-dd HH:mm:ss"),
US_DATE_PATTERN("M/d/yy"), US_DATE_PATTERN("M/d/yy"),
US_DATE_TIME_PATTERN("M/d/yy h:mm a"), US_DATE_TIME_PATTERN("M/d/yy h:mm a"),
US_DATE_TIME_24_PATTERN("M/d/yy HH:mm"),
CANONICAL_DATE_PATTERN(BasicConstant.CANONICAL_DATE_FORMAT_PATTERN), CANONICAL_DATE_PATTERN(BasicConstant.CANONICAL_DATE_FORMAT_PATTERN),
RENDERED_CANONICAL_DATE_PATTERN(BasicConstant.RENDERED_CANONICAL_DATE_FORMAT_PATTERN); RENDERED_CANONICAL_DATE_PATTERN(BasicConstant.RENDERED_CANONICAL_DATE_FORMAT_PATTERN);
......
...@@ -121,6 +121,10 @@ public final class PropertyValidatorTest extends AbstractBOTest ...@@ -121,6 +121,10 @@ public final class PropertyValidatorTest extends AbstractBOTest
createTimestampPropertyType(), createTimestampPropertyType(),
DateFormatUtils.format(new Date(), DateFormatUtils.format(new Date(),
SupportedDatePattern.CANONICAL_DATE_PATTERN.getPattern()) }, SupportedDatePattern.CANONICAL_DATE_PATTERN.getPattern()) },
{
createTimestampPropertyType(),
DateFormatUtils.format(new Date(),
SupportedDatePattern.US_DATE_TIME_24_PATTERN.getPattern()) },
{ createIntegerPropertyType(), "1" }, { createIntegerPropertyType(), "1" },
{ createRealPropertyType(), "1" }, { createRealPropertyType(), "1" },
{ createRealPropertyType(), "1.1" }, { createRealPropertyType(), "1.1" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment