feat: Implement date formatting utility functions and update components to use formatted timestamps for improved readability and consistency across the application.
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m47s

This commit is contained in:
2025-12-24 15:52:01 +07:00
parent 6e7a63dd28
commit 27dade3eda
20 changed files with 1832 additions and 1045 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { IconAlertTriangle, IconCopy, IconRefresh, IconChevronDown, IconChevronUp } from '@tabler/icons-react'
import { useState } from 'react'
import { formatDateTime } from '../lib/datetime.js'
/**
* ErrorAlert - улучшенный компонент для отображения ошибок
@@ -29,7 +30,7 @@ function ErrorAlert({
Ошибка: ${errorMessage}
${errorCode ? `Код: ${errorCode}` : ''}
${errorDetails ? `Детали:\n${typeof errorDetails === 'string' ? errorDetails : JSON.stringify(errorDetails, null, 2)}` : ''}
Время: ${new Date().toLocaleString('ru-RU')}
Время: ${formatDateTime(new Date())}
`.trim()
navigator.clipboard.writeText(errorText).then(() => {