From 5c534b1537289d57a378ced3832972b5d67dd306 Mon Sep 17 00:00:00 2001 From: Mute Date: Thu, 27 Oct 2022 17:27:42 +0000 Subject: [PATCH] Update 'mbchc-local.user.js' locales are bullshit --- mbchc-local.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))