Merge pull request #2997 from a-y-a-n-das/fix-week-datestring
fix(chart): correct 'week' date string format in chart aggregation
This commit is contained in:
1 file changed
+2
-2
@@ -232,7 +232,7 @@ class MonitorModule {
|
|||||||
const formatLookup = {
|
const formatLookup = {
|
||||||
recent: "%Y-%m-%dT%H:%M:00Z",
|
recent: "%Y-%m-%dT%H:%M:00Z",
|
||||||
day: "%Y-%m-%dT%H:00:00Z",
|
day: "%Y-%m-%dT%H:00:00Z",
|
||||||
week: "%Y-%m-%dT%H:00:00Z",
|
week: "%Y-%m-%dT00:00:00Z",
|
||||||
month: "%Y-%m-%dT00:00:00Z",
|
month: "%Y-%m-%dT00:00:00Z",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -308,7 +308,7 @@ class MonitorModule {
|
|||||||
const formatLookup = {
|
const formatLookup = {
|
||||||
recent: "%Y-%m-%dT%H:%M:00Z",
|
recent: "%Y-%m-%dT%H:%M:00Z",
|
||||||
day: "%Y-%m-%dT%H:00:00Z",
|
day: "%Y-%m-%dT%H:00:00Z",
|
||||||
week: "%Y-%m-%dT%H:00:00Z",
|
week: "%Y-%m-%dT00:00:00Z",
|
||||||
month: "%Y-%m-%dT00:00:00Z",
|
month: "%Y-%m-%dT00:00:00Z",
|
||||||
};
|
};
|
||||||
const dateString = formatLookup[dateRange];
|
const dateString = formatLookup[dateRange];
|
||||||
|
|||||||
Reference in new issue
Block a user