diff --git a/layouts/partials/subtitle.html b/layouts/partials/subtitle.html index 7a9d176..886828c 100644 --- a/layouts/partials/subtitle.html +++ b/layouts/partials/subtitle.html @@ -21,9 +21,9 @@ const timeElement = document.getElementById('time'); if (timeElement) { const currentDateTime = getCurrentDateTimeUTCPlus6(); - const year = currentDateTime.getUTCFullYear(); - const month = formatNumber(currentDateTime.getUTCMonth() + 1); const date = formatNumber(currentDateTime.getUTCDate()); + const month = formatNumber(currentDateTime.getUTCMonth() + 1); + const year = currentTime.getUTCFullYear().toString().slice(-2); // Получаем последние две цифры года const hours = formatNumber(currentDateTime.getUTCHours()); const minutes = formatNumber(currentDateTime.getUTCMinutes()); const seconds = formatNumber(currentDateTime.getUTCSeconds());