Update 'mbchc-local.user.js'
locales are bullshit
This commit is contained in:
parent
41b2029efd
commit
5c534b1537
|
@ -623,8 +623,8 @@
|
||||||
window.DrawRect(CharX + 175 * Zoom, CharY, 50 * Zoom, 50 * Zoom, colour)
|
window.DrawRect(CharX + 175 * Zoom, CharY, 50 * Zoom, 50 * Zoom, colour)
|
||||||
}
|
}
|
||||||
if ((window.ChatRoomHideIconState < 1) && C.MBCHC_LOCAL && C.MBCHC_LOCAL.TZ) {
|
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 hours = new Date(window.CommonTime() + window.MBCHC.UTC_OFFSET + C.MBCHC_LOCAL.TZ * 60 * 60 * 1000).getHours()
|
||||||
let text = localtime.toLocaleTimeString([], {hourCycle: "h24", hour: "2-digit"})
|
let text = (hours < 10) ? "0" + hours.toString() : hours.toString()
|
||||||
window.DrawTextFit(text, CharX + 200 * Zoom, CharY + 25 * Zoom, 46 * Zoom, "white", "black")
|
window.DrawTextFit(text, CharX + 200 * Zoom, CharY + 25 * Zoom, 46 * Zoom, "white", "black")
|
||||||
}
|
}
|
||||||
return(next(nextargs))
|
return(next(nextargs))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user