damien
March 7, 2023, 3:16am
1
Hi,
I have UTC date data coming into QuickSight. I would like to perform calculations on it to convert it to the time zone of the user currently viewing the dashboard.
Is there any way to do this? For example, if I could execute JavaScript I could pull the user’s time zone from their browser and use that for calculation.
Thanks for your help.
Damien
@damien - Did you get a chance to look at the below blog post? That may give you some cue on what you are trying to achieve.
Most databases (including SPICE) store timestamps in UTC time. If you want to be able to dynamically adjust the time zone of the data displayed in your visuals for different users, we can do this using parameters and calculated fields. This technique will work both for if you want to allow Readers to change the time zone themselves (using a Control), or if you want to specify the time zone programmatically via the URL or via the JS SDK (for instance if you are embedding a dashboard in your appli…
Hope this helps!
1 Like
damien
March 7, 2023, 9:12pm
3
Hi @sagmukhe , thanks heaps for that. Perfect! I didn’t realise you could set parameters like that. It’s very useful.
1 Like
Thank you @sagmukhe for sharing your expertise with the community!
Thanks @damien for letting us know that the solution worked for you!