You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since new Date constructs the Date object in local timezone and toISOString converts it to GMT+0, it will become the previous day if the browser timezone is >0. We should use Date.UTC instead.
What happened?
If the browser timezone is a positive value, the date shown in the activity charts will be off by one:
This bug is due to the standardizeDate function:
Since
new Date
constructs the Date object in local timezone andtoISOString
converts it to GMT+0, it will become the previous day if the browser timezone is >0. We should use Date.UTC instead.Other calls to
toISOString
may have the same problem, but I didn't check them individually.Relevant log output
Are you a ML Ops Team?
Yes
What LiteLLM version are you on ?
v1.60.2
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: