diff --git a/mbchc-local.user.js b/mbchc-local.user.js index 475d28c..3f9e0d0 100644 --- a/mbchc-local.user.js +++ b/mbchc-local.user.js @@ -623,8 +623,8 @@ window.DrawRect(CharX + 175 * Zoom, CharY, 50 * Zoom, 50 * Zoom, colour) } if ((window.ChatRoomHideIconState < 1) && C.MBCHC_LOCAL && C.MBCHC_LOCAL.TZ) { - let localtime = new Date(window.CommonTime() + window.MBCHC.UTC_OFFSET + C.MBCHC_LOCAL.TZ * 60 * 60 * 1000) - let text = localtime.toLocaleTimeString([], {hourCycle: "h24", hour: "2-digit"}) + let hours = new Date(window.CommonTime() + window.MBCHC.UTC_OFFSET + C.MBCHC_LOCAL.TZ * 60 * 60 * 1000).getHours() + let text = (hours < 10) ? "0" + hours.toString() : hours.toString() window.DrawTextFit(text, CharX + 200 * Zoom, CharY + 25 * Zoom, 46 * Zoom, "white", "black") } return(next(nextargs))