From d8774bb53d3bdf2991ca4a59c3831f9c24f21de6 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 1 Feb 2025 15:50:44 -0800 Subject: [PATCH] fix time filters --- .../src/components/view_logs/index.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui/litellm-dashboard/src/components/view_logs/index.tsx b/ui/litellm-dashboard/src/components/view_logs/index.tsx index aac8e9c809e..1d97a8e7e24 100644 --- a/ui/litellm-dashboard/src/components/view_logs/index.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/index.tsx @@ -105,13 +105,10 @@ export default function SpendLogsTable({ }; } - const formattedStartTime = moment(startTime).utc().format("YYYY-MM-DD HH:mm:ss"); + const formattedStartTime = moment(startTime).format("YYYY-MM-DD HH:mm:ss"); const formattedEndTime = isCustomDate - ? moment(endTime).utc().format("YYYY-MM-DD HH:mm:ss") - : moment().utc().format("YYYY-MM-DD HH:mm:ss"); - - console.log("formattedStartTime", formattedStartTime); - console.log("formattedEndTime", formattedEndTime); + ? moment(endTime).format("YYYY-MM-DD HH:mm:ss") + : moment().format("YYYY-MM-DD HH:mm:ss"); return await uiSpendLogsCall( accessToken, @@ -179,7 +176,7 @@ export default function SpendLogsTable({

Request Logs

-
+