🔧 Fix(logger): Изменена функция timestamp для отображения дней и месяцев.
All checks were successful
Deploy / deploy (push) Successful in 47s

This commit is contained in:
Oscar
2026-06-01 11:04:57 +03:00
parent c67fcfe4c6
commit 024b8f41b8

View File

@@ -26,11 +26,11 @@ type Level = keyof typeof LEVELS
function timestamp(): string {
const now = new Date()
const dd = String(now.getDate()).padStart(2, '0')
const mo = String(now.getMonth() + 1).padStart(2, '0')
const hh = String(now.getHours()).padStart(2, '0')
const mm = String(now.getMinutes()).padStart(2, '0')
const ss = String(now.getSeconds()).padStart(2, '0')
const ms = String(now.getMilliseconds()).padStart(3, '0')
return `${DIM}${colors.gray}${hh}:${mm}:${ss}.${ms}${RESET}`
return `${DIM}${colors.gray}${dd}.${mo} ${hh}:${mm}${RESET}`
}
function formatTag(tag: string): string {