Searched hist:"07 b85ef3" (Results 1 – 1 of 1) sorted by relevance
/openbmc/webui-vue/src/ |
H A D | main.js | 07b85ef3 Fri Jul 09 20:00:35 CDT 2021 Derick Montague <derick.montague@ibm.com> Fix cross-browser time formatting bug
To format the BMC time as 24 hour time, we used the `hour12` property. In Chrome, the time between 12:00 AM and 1:00 AM is displaye as 24:xx, instead of 00:xx. The cross-browser solution is to replace the `hour12` property with the `hourCycle` property so that all the time is formatted as 00:xx.
Reference for Intl.DateTimeFormat constructor https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I68539d9602499dcb1bde9a4b01dd7a66fbc69d1a
|