This commit is contained in:
fruworg 2023-07-31 01:37:07 +05:00
parent b81405331c
commit 2217b22fe8

View File

@ -21,9 +21,9 @@
const timeElement = document.getElementById('time'); const timeElement = document.getElementById('time');
if (timeElement) { if (timeElement) {
const currentDateTime = getCurrentDateTimeUTCPlus6(); const currentDateTime = getCurrentDateTimeUTCPlus6();
const year = currentDateTime.getUTCFullYear();
const month = formatNumber(currentDateTime.getUTCMonth() + 1);
const date = formatNumber(currentDateTime.getUTCDate()); const date = formatNumber(currentDateTime.getUTCDate());
const month = formatNumber(currentDateTime.getUTCMonth() + 1);
const year = currentTime.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());