mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
ui use UTC for filtering time
This commit is contained in:
parent
2734fac591
commit
a2ad7eb8cb
1 changed files with 4 additions and 3 deletions
|
|
@ -105,10 +105,11 @@ export default function SpendLogsTable({
|
|||
};
|
||||
}
|
||||
|
||||
const formattedStartTime = moment(startTime).format("YYYY-MM-DD HH:mm:ss");
|
||||
// Convert times to UTC before formatting
|
||||
const formattedStartTime = moment(startTime).utc().format("YYYY-MM-DD HH:mm:ss");
|
||||
const formattedEndTime = isCustomDate
|
||||
? moment(endTime).format("YYYY-MM-DD HH:mm:ss")
|
||||
: moment().format("YYYY-MM-DD HH:mm:ss");
|
||||
? moment(endTime).utc().format("YYYY-MM-DD HH:mm:ss")
|
||||
: moment().utc().format("YYYY-MM-DD HH:mm:ss");
|
||||
|
||||
return await uiSpendLogsCall(
|
||||
accessToken,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue