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:
Alexander Holliday
2025-10-02 13:35:40 -07:00
committed by GitHub

View File

@@ -232,7 +232,7 @@ class MonitorModule {
const formatLookup = {
recent: "%Y-%m-%dT%H:%M: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",
};
@@ -308,7 +308,7 @@ class MonitorModule {
const formatLookup = {
recent: "%Y-%m-%dT%H:%M: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",
};
const dateString = formatLookup[dateRange];