diff options
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/GlobalStore.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js index 6511a45a..057f5158 100644 --- a/src/store/modules/GlobalStore.js +++ b/src/store/modules/GlobalStore.js @@ -51,11 +51,10 @@ const GlobalStore = { }, getBmcTime({ commit }) { api - .get('/xyz/openbmc_project/time/bmc') + .get('/redfish/v1/Managers/bmc') .then(response => { - // bmcTime is stored in microseconds, convert to milliseconds - const bmcEpochTime = response.data.data.Elapsed / 1000; - const date = new Date(bmcEpochTime); + const bmcDateTime = response.data.DateTime; + const date = new Date(bmcDateTime); commit('setBmcTime', date); }) .catch(error => console.log(error)); |