This commit is contained in:
fruworg 2023-07-31 01:39:58 +05:00
parent 2217b22fe8
commit 88af5ce9af

View File

@ -23,7 +23,7 @@
const currentDateTime = getCurrentDateTimeUTCPlus6(); const currentDateTime = getCurrentDateTimeUTCPlus6();
const date = formatNumber(currentDateTime.getUTCDate()); const date = formatNumber(currentDateTime.getUTCDate());
const month = formatNumber(currentDateTime.getUTCMonth() + 1); const month = formatNumber(currentDateTime.getUTCMonth() + 1);
const year = currentTime.getUTCFullYear().toString().slice(-2); // Получаем последние две цифры года const year = currentDateTime.getUTCFullYear().toString().slice(-2); // Получаем последние две цифры года
const hours = formatNumber(currentDateTime.getUTCHours()); const hours = formatNumber(currentDateTime.getUTCHours());
const minutes = formatNumber(currentDateTime.getUTCMinutes()); const minutes = formatNumber(currentDateTime.getUTCMinutes());
const seconds = formatNumber(currentDateTime.getUTCSeconds()); const seconds = formatNumber(currentDateTime.getUTCSeconds());