diff --git a/apps/console/src/pages/iam/oauthTokens/_components/OAuthTokenRow.tsx b/apps/console/src/pages/iam/oauthTokens/_components/OAuthTokenRow.tsx index baaddaa7a..be1f34fae 100644 --- a/apps/console/src/pages/iam/oauthTokens/_components/OAuthTokenRow.tsx +++ b/apps/console/src/pages/iam/oauthTokens/_components/OAuthTokenRow.tsx @@ -18,7 +18,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -import { formatDate, formatError } from "@probo/helpers"; +import { formatError } from "@probo/helpers"; +import { dateFormat } from "@probo/i18n"; import { Badge, Button, @@ -67,7 +68,7 @@ export function OAuthTokenRow(props: { identityId: string; }) { const { tokenKey, identityId } = props; - const { t } = useTranslation(); + const { t, i18n } = useTranslation(); const { toast } = useToast(); const token = useFragment(fragment, tokenKey); @@ -152,8 +153,8 @@ export function OAuthTokenRow(props: { )} - {formatDate(token.createdAt)} - {formatDate(token.expiresAt)} + {dateFormat(i18n.language, token.createdAt)} + {dateFormat(i18n.language, token.expiresAt)} {token.canDelete && ( ( SCIMEventListItemFragment, @@ -93,7 +95,7 @@ export function SCIMEventListItem(props: { : ( )} - {formatDate(event.createdAt)} + {dateFormat(i18n.language, event.createdAt)} {getMethodBadge(event.method)}