1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

chore: fix traffic data timezone visualization issue with getUTCDate (#9110)

This commit is contained in:
David Leek 2025-01-17 09:59:15 +01:00 committed by GitHub
parent 25c09c3627
commit 2d340f6a21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,7 +132,7 @@ const toChartData = (
for (const dayKey in item.days) {
const day = item.days[dayKey];
const dayNum = new Date(Date.parse(day.day)).getDate();
const dayNum = new Date(Date.parse(day.day)).getUTCDate();
daysRec[`d${dayNum}`] = day.trafficTypes[0].count;
}
const epInfo = endpointsInfo[item.apiPath];