This commit is contained in:
parent
4fe1837659
commit
a1224e3fb4
|
@ -23,7 +23,7 @@ async function updateMessages(id) {
|
||||||
let utcHours = date.getUTCHours().toString().padStart(2, '0');
|
let utcHours = date.getUTCHours().toString().padStart(2, '0');
|
||||||
let utcMinutes = date.getUTCMinutes().toString().padStart(2, '0');
|
let utcMinutes = date.getUTCMinutes().toString().padStart(2, '0');
|
||||||
let timeZoneOffset = date.getTimezoneOffset();
|
let timeZoneOffset = date.getTimezoneOffset();
|
||||||
let hours = (utcHours - timeZoneOffset / 60 + 1).toString().padStart(2, '0');
|
let hours = (utcHours - timeZoneOffset / 60 + 4).toString().padStart(2, '0');
|
||||||
let minutes = utcMinutes.toString().padStart(2, '0');
|
let minutes = utcMinutes.toString().padStart(2, '0');
|
||||||
let time = (hours + ":" + minutes)
|
let time = (hours + ":" + minutes)
|
||||||
|
|
||||||
|
|
Reference in New Issue