From 2d2a2c35d8667c65e78837653918af38059a57c2 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 25 Oct 2024 09:23:08 +0400 Subject: [PATCH] ui show created at date --- .../src/components/view_key_table.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/view_key_table.tsx b/ui/litellm-dashboard/src/components/view_key_table.tsx index 0595e31fd..474a308e9 100644 --- a/ui/litellm-dashboard/src/components/view_key_table.tsx +++ b/ui/litellm-dashboard/src/components/view_key_table.tsx @@ -802,6 +802,7 @@ const ViewKeyTable: React.FC = ({ Key Alias Secret Key + Created Expires Spend (USD) Budget (USD) @@ -843,10 +844,19 @@ const ViewKeyTable: React.FC = ({ {item.key_name} + + {item.created_at != null ? ( +
+

{new Date(item.created_at).toLocaleDateString()}

+
+ ) : ( +

Not available

+ )} +
{item.expires != null ? (
-

{new Date(item.expires).toLocaleString()}

+

{new Date(item.expires).toLocaleDateString()}

) : (

Never