Dashboards & Visualizations

How to display last update time for a specific timezone irrespective of the local timezone?

Taruchit
Contributor

Hi All,

I referred the following https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-the-page-last-updated-time-... to display the last refreshed/updated date-time on the dashboard.

In my case, it uses my local system's timezone to display the result. I changed the timezone in Splunk from default to EST, but it still takes and displays time as per local timezone. Can anybody please share a way to display the date time for a specific timezone irrespective of the local timezone on which the dashboard is being accessed? 

Thank you

Labels (1)
Tags (1)
0 Karma
1 Solution

PickleRick
SplunkTrust
SplunkTrust

Short answer is - you can't.

Long answer is - splunk strftime always shows time in the timezone of your user. And there's a pretty solid rationale for that - you don't want your users get confused because someone hardcoded some static timezone information in the report/dashboard/whatever. You can "cheat" a bit by calculating an offset between different timezones and then render the timestamp in the user's timezone , then cut the timezone information and glue some static timezone string - a very, very ugly solution and I would advise wholeheartedly against it.

View solution in original post

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Short answer is - you can't.

Long answer is - splunk strftime always shows time in the timezone of your user. And there's a pretty solid rationale for that - you don't want your users get confused because someone hardcoded some static timezone information in the report/dashboard/whatever. You can "cheat" a bit by calculating an offset between different timezones and then render the timestamp in the user's timezone , then cut the timezone information and glue some static timezone string - a very, very ugly solution and I would advise wholeheartedly against it.

0 Karma

Taruchit
Contributor

Thank you for sharing your inputs.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...