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
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m47s
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user