fix: date format showing MM/DD/YYYY instead of DD/MM/YYYY

This commit is contained in:
Official-Krish
2026-07-13 14:29:17 +05:30
parent 3349bfaf3f
commit 810931d748
6 changed files with 13 additions and 11 deletions
@@ -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">