mirror of
https://github.com/fruworg/themu.git
synced 2025-06-14 10:40:26 +03:00
date
This commit is contained in:
@ -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());
|
||||||
|
Reference in New Issue
Block a user