RM-1234, Changed formatting of date.year.week substitution to match help text

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63075 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Hibbins
2014-02-21 18:06:49 +00:00
parent cc073a62d3
commit 7b34e060f9
4 changed files with 33 additions and 9 deletions

View File

@@ -47,13 +47,18 @@ public class DateParameterProcessor extends ParameterProcessor implements Parame
private static final String[] ALL_FIELDS_FOR_SUBSTITUTION_QUERY = {
DAY + SEP + SHORT,
DAY,
DAY + SEP + LONG,
DAY + SEP + NUMBER,
DAY + SEP + YEAR,
MONTH + SEP + SHORT,
MONTH,
MONTH + SEP + LONG,
MONTH + SEP + NUMBER,
YEAR + SEP + SHORT,
YEAR + SEP + LONG
YEAR,
YEAR + SEP + LONG,
YEAR + SEP + WEEK
};
/**
@@ -163,7 +168,7 @@ public class DateParameterProcessor extends ParameterProcessor implements Parame
}
else if (WEEK.equalsIgnoreCase(style))
{
pattern = "w";
pattern = "ww";
}
else
{