mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 15:47:06 +08:00
fix(index.html): respect 12-hour format
This commit is contained in:
+3
-1
@@ -182,7 +182,9 @@
|
||||
}
|
||||
|
||||
function formatClock(timeMs) {
|
||||
return new Date(timeMs).toTimeString().slice(0, 8);
|
||||
return new Date(timeMs).toLocaleTimeString(undefined, {
|
||||
hour: '2-digit', minute: '2-digit', second: '2-digit'
|
||||
});
|
||||
}
|
||||
|
||||
function renderXAxisLabels(width) {
|
||||
|
||||
Reference in New Issue
Block a user