modify date format to ISO standard, remove toTimeStamp method

This commit is contained in:
Alex Holliday committed 2025-01-01 17:27:12 -08:00
1 parent e7cf127fde
commit b332bed14e
5 files changed
+11 -39

No files matched your search

+3 -3
View File
@@ -323,9 +323,9 @@ const getUptimeDetailsById = async (req) => {
const { dateRange, normalize } = req.query;
const dates = getDateRange(dateRange);
const formatLookup = {
day: "%Y-%m-%d-%H",
week: "%Y-%m-%d-%H",
month: "%Y-%m-%d",
day: "%Y-%m-%dT%H:00:00Z",
week: "%Y-%m-%dT%H:00:00Z",
month: "%Y-%m-%dT00:00:00Z",
};
const dateString = formatLookup[dateRange];