Formatage de la date de création des utilisateurs dans le tableau des utilisateurs

This commit is contained in:
Kevin 2025-02-21 21:09:51 +01:00
parent 597395e7ed
commit 0b1f56c7a1

View File

@ -116,7 +116,9 @@ export function UsersTable({ userRole }: UsersTableProps) {
<TableCell>{user.firstName}</TableCell> <TableCell>{user.firstName}</TableCell>
<TableCell>{user.lastName}</TableCell> <TableCell>{user.lastName}</TableCell>
<TableCell>{user.email}</TableCell> <TableCell>{user.email}</TableCell>
<TableCell>{user.createdTimestamp}</TableCell> <TableCell>
{new Date(user.createdTimestamp).toLocaleDateString()}
</TableCell>
<TableCell>{user.roles.join(", ")}</TableCell> <TableCell>{user.roles.join(", ")}</TableCell>
<TableCell> <TableCell>
{canDelete(user.roles) && ( {canDelete(user.roles) && (