fix(Map): Trying to fix problem with fast forwarding after page are inactive some time.

This commit is contained in:
DanSylvest
2025-07-13 15:20:33 +03:00
parent c65b8e5ebd
commit eabb0e8470
6 changed files with 167 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
export function getFormattedTime() {
const now = new Date();
const hours = String(now.getHours()).padStart(2, '0');
const minutes = String(now.getMinutes()).padStart(2, '0');
const seconds = String(now.getSeconds()).padStart(2, '0');
const ms = String(now.getMilliseconds() + 1000).slice(1);
return `${hours}:${minutes}:${seconds} ${ms}`;
}