mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
date
This commit is contained in:
parent
e5a8f9b4a6
commit
b81405331c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user