mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-06-08 18:04:57 +00:00
🔧 Fix(logger): Изменена функция timestamp для отображения дней и месяцев.
All checks were successful
Deploy / deploy (push) Successful in 47s
All checks were successful
Deploy / deploy (push) Successful in 47s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user