[FIX] web: correct quarter format in mockReadGroup

Before this commit the value of a field (of date/datetime type)
used as a groupby was not correctly formatted in the test environment
when the granularity was 'quarter'. This commit fixes that situation.
This commit is contained in:
Mathieu Duckerts-Antoine
2019-04-01 14:38:44 +00:00
parent 863de16a91
commit a804585700
@@ -877,6 +877,8 @@ var MockServer = Class.extend({
return moment(val).format('YYYY-MM-DD');
} else if (aggregateFunction === 'week') {
return moment(val).format('ww YYYY');
} else if (aggregateFunction === 'quarter') {
return 'Q' + moment(val).format('Q YYYY');
} else if (aggregateFunction === 'year') {
return moment(val).format('Y');
} else {