export function formatAuthUpdatedAt( value, { locale, timeZone } = {}, ) { const date = new Date(value); if (!Number.isFinite(date.getTime())) { return null; } return new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "medium", ...(timeZone ? { timeZone } : {}), }).format(date); } // A short local date and time for people, or "" when the value is not a date. // Show it inside