From 2217b22fe8bd3879ae42d863bed8177ca5c0e74a Mon Sep 17 00:00:00 2001 From: fruworg Date: Mon, 31 Jul 2023 01:37:07 +0500 Subject: [PATCH] date --- layouts/partials/subtitle.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());