Configuring Card for Last Time Federated Dataset Refreshed Based on Browser Time Zone
Hello,
I am trying to visualize in a card when the last time a federated dataset has been refreshed based on the timezone that a person's browser is set to. For example, if I see that this dataset last updated at 2 PM and I am in the Eastern Timezone, I would want that a person in LA time see that the dataset last updated at 11 AM.
My approach thus far has been trying to use the Activity Log to get the last refresh time but I have been unsuccessful in getting this value due to the federated dataset will only show the last time it was created as the Updated time.
I was thinking of using javascript to get the browser timezone information and then adjust the timezone that way once I could get the timezone. I am open to trying other suggestions as well.
What steps can I take to make this possible?
Answers
-
I believe you can get the timezone in Javsascript using Intl.DateTimeFormat().resolvedOptions().timeZone. See link above.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
Have you considered some type of dropdown where the user can set their timezone in a dropdown and your dashboard adjusts by adding/subtracting from UTC time?
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
Before going down that road of trying to use JavaScript, you may want to check what your company time zone settings are and what a user's Domo time zone settings are.
Under More → Admin → Company Overview there is a time zone setting that your company can be set to for the default display.
Each user can have their own time zone setting, which is found by having the user click on their avatar in the top right corner of Domo and then click on the Settings cog icon. They can set their time zone under the Location heading.
I would try setting a user to Pacific Time and see what time is displayed for the last refresh and see if already says 11am based on that user setting.
This would potentially save you a lot of trouble.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Hi everyone! Thanks for all your responses. Because the dashboards that I am making are embedded for people worldwide on my company's website, I cannot set each user's timezone on the dashboard as each user is logging in through the company's website and then accessing their data through the embedded dashboard. Moreover, because the dataset that I am using is federated, I am not able to see when the last time the dataset was refreshed. I am thinking that once I am able to get the last refresh time for the federated dataset, I can use any one of the tricks above to get what I am looking for.
In short, I am hoping that someone can tell me how I can get the last time a federated dataset was refreshed (got new data into Domo) so that I can then use some tricks to showcase the last time the user's data was updated in their timezone.
0 -
Hi everyone,
I was thinking of using this solution https://community-forums.domo.com/main/discussion/55095/date-and-time-of-last-update-on-the-dashboard and then with a little javascript, I will be able to adjust to the timezone.
Is this feasible?1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive