feat: show time in documents table

This commit is contained in:
Rushat Gabhane
2024-04-29 04:28:13 +05:30
parent 8a24ca2065
commit 80c03fcf3f

View File

@ -3,6 +3,7 @@
import { useTransition } from 'react';
import { Loader } from 'lucide-react';
import { DateTime } from 'luxon';
import { useSession } from 'next-auth/react';
import { useUpdateSearchParams } from '@documenso/lib/client-only/hooks/use-update-search-params';
@ -62,7 +63,9 @@ export const DocumentsDataTable = ({
{
header: 'Created',
accessorKey: 'createdAt',
cell: ({ row }) => <LocaleDate date={row.original.createdAt} />,
cell: ({ row }) => (
<LocaleDate date={row.original.createdAt} format={DateTime.DATETIME_SHORT} />
),
},
{
header: 'Title',