This commit is contained in:
maaa 2023-07-12 18:59:43 +02:00
parent a673a06479
commit e44b6752e7
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +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();
console.log(timeZoneOffset)
let hours = (utcHours - timeZoneOffset / 60 + 5).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)