From b81405331ce9286c8ffe1a5f9384b7effc440e40 Mon Sep 17 00:00:00 2001 From: fruworg Date: Mon, 31 Jul 2023 01:34:32 +0500 Subject: [PATCH] date --- layouts/partials/subtitle.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/subtitle.html b/layouts/partials/subtitle.html index 4ffc27f..7a9d176 100644 --- a/layouts/partials/subtitle.html +++ b/layouts/partials/subtitle.html @@ -12,7 +12,7 @@ function getCurrentDateTimeUTCPlus6() { const currentTime = new Date(); const offset = currentTime.getTimezoneOffset(); // Получаем разницу в минутах между UTC и локальным временем - const utcPlus6DateTime = new Date(currentTime.getTime() + offset * 60 * 1000 + 6 * 60 * 60 * 1000); // Добавляем 6 часов к UTC+0 + const utcPlus6DateTime = new Date(currentTime.getTime() + 6 * 60 * 60 * 1000); // Добавляем 6 часов к UTC+0 return utcPlus6DateTime; }