diff --git a/src/client/components/server/ServerList.tsx b/src/client/components/server/ServerList.tsx index 7a922fe..d36fe10 100644 --- a/src/client/components/server/ServerList.tsx +++ b/src/client/components/server/ServerList.tsx @@ -136,7 +136,16 @@ export const ServerList: React.FC = React.memo((props) => { columnHelper.accessor('updatedAt', { header: t('updatedAt'), size: 130, - cell: (props) => dayjs(props.getValue()).fromNow(), + cell: (props) => ( + + + {dayjs(props.getValue()).fromNow()} + + + {dayjs(props.getValue()).format('YYYY-MM-DD HH:mm:ss')} + + + ), }), ]; }, [t]); diff --git a/src/client/routes/survey/$surveyId/index.tsx b/src/client/routes/survey/$surveyId/index.tsx index 2c7b5da..93b9793 100644 --- a/src/client/routes/survey/$surveyId/index.tsx +++ b/src/client/routes/survey/$surveyId/index.tsx @@ -19,6 +19,7 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { DataTable, createColumnHelper } from '@/components/DataTable'; import { useMemo } from 'react'; import { SurveyDownloadBtn } from '@/components/survey/SurveyDownloadBtn'; +import dayjs from 'dayjs'; type SurveyResultItem = AppRouterOutput['survey']['resultList']['items'][number]; @@ -77,7 +78,8 @@ function PageComponent() { ) ?? []), columnHelper.accessor('createdAt', { header: t('Created At'), - size: 150, + size: 130, + cell: (props) => dayjs(props.getValue()).format('YYYY-MM-DD HH:mm:ss'), }), ]; }, [t, info]);