diff options
Diffstat (limited to 'src/store/modules/HardwareStatus/FanStore.js')
-rw-r--r-- | src/store/modules/HardwareStatus/FanStore.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/store/modules/HardwareStatus/FanStore.js b/src/store/modules/HardwareStatus/FanStore.js index 69e18532..767e6512 100644 --- a/src/store/modules/HardwareStatus/FanStore.js +++ b/src/store/modules/HardwareStatus/FanStore.js @@ -1,5 +1,7 @@ import api from '@/store/api'; import i18n from '@/i18n'; +import store from '@/store'; +import { getOffsetByTimeZone } from '@/utilities/_sila/convertTimeZone'; const FanStore = { namespaced: true, @@ -95,11 +97,11 @@ const FanStore = { }, async getFans({ commit }, { lastHour }) { let url = null; + let offset = getOffsetByTimeZone(store.getters['global/timeZone']); if (lastHour) { - url = - '/redfish/v1/TelemetryService/MetricReports/fans&period=last_hour'; + url = `/redfish/v1/TelemetryService/MetricReports/fans&period=last_hour&timezone=${offset}`; } else { - url = '/redfish/v1/TelemetryService/MetricReports/fans'; + url = `/redfish/v1/TelemetryService/MetricReports/fans&timezone=${offset}`; } return await api .get(url) |