Closed jberwick-splunk closed 2 years ago
Great ideas! Can you possibly share me the URL that was generated for your dashboard? If you can't share the FQDN, at least just the path and query params. I'm just trying to understand if we were able to find a TZ for the user running this or not. That will help me confirm where I need to apply the fix
Adding this message if no TZ is set.
rangeslider?dashboardid=test&rangeStart=&rangeEnd=&timeinterval=15min&theme=&timerangetype=relative&relativetime=1h&tz=
It's this endpoint that is returning tz: "".
/splunkd/services/authentication/current-context
If the user doesn't have the timezone set the rangeslider page doesn't render with follow stack.
In Dashboardselector.jsx:
end of data payload:
Maybe check tz is populated or add a default like gmt or use something like
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
Maybe add a warning to let them know a default was used because they haven't set a timezone.