mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
date
This commit is contained in:
parent
b81405331c
commit
2217b22fe8
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user