This commit is contained in:
parent
a1224e3fb4
commit
a673a06479
|
@ -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 + 4).toString().padStart(2, '0');
|
let hours = (utcHours - timeZoneOffset / 60 + 5).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