mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: date format showing MM/DD/YYYY instead of DD/MM/YYYY
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
OrganizationMemberChangeRoleModal
|
||||
} from "@/features/organizations/components/organization-member-change-role";
|
||||
import {MemberWithUser, OrganizationWithMembersAndUsers} from "@/db/schema/03_organization";
|
||||
import {formatDayOnly} from "@/utils/date-formatting";
|
||||
|
||||
type OrganizationMemberCardProps = {
|
||||
member: MemberWithUser;
|
||||
@@ -56,7 +57,7 @@ export const OrganizationMemberCard = ({member, organization}: OrganizationMembe
|
||||
<div className="font-medium">{member.user.name}</div>
|
||||
<div className="text-sm text-muted-foreground">{member.user.email}</div>
|
||||
<div
|
||||
className="text-xs text-muted-foreground">Joined {new Date(member.createdAt).toLocaleDateString()}</div>
|
||||
className="text-xs text-muted-foreground">Joined {formatDayOnly(new Date(member.createdAt))}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center space-x-2 mt-4 md:mt-0">
|
||||
|
||||
Reference in New Issue
Block a user