Knowledge Drop

How do I make my dashboard timezone listen to the timezone defined in my embed URL?

  • 5 June 2021
  • 1 reply

Userlevel 5
  • Looker Staff
  • 173 replies

Last tested: Nov 2020



  1. Enable User-Specific Timezones in the Admin panel.

  2. Add the user_timezone as one of the embed URL parameters when generating the embed URL.

  3. After the embed URL loads the dashboard, the embed user can switch to Viewer Timezone in the timezone dropdown menu at the top right.

But what if i want to have the embed dashboard loaded with the user-specific timezone by default?

Steps 1 and 2 stay the same. Instead of having the embed user switch the timezone in Step 3, use one of the following options.

Option 1: Save the dashboard with the default timezone "Viewer Timezone". This will use the user's timezone as default for both embed users and non-embed users.

Option 2: We can add &query_timezone=user_timezone as part of the dashboard URL. This will make the user's timezone selected by default even if it is not the saved default timezone for the dashboard. Note that the user_timezone is one of the embed URL parameters, but the query_timezone is not an embed URL parameter; it is part of the target URL.

Example of correct body for create_sso_embed_url call:

{"target_url":"","external_user_id":"1024","permissions": ["access_data", "see_user_dashboards"],"models": ["the_model","mysql_model"],"user_timezone":"America/New_York"}

Resulting URL:

Example of INCORRECT body:

{"target_url":"","external_user_id":"1024","permissions": ["access_data", "see_user_dashboards"],"models": ["the_model","mysql_model"],"user_timezone":"America/New_York","query_timezone":"user_timezone"  #DON'T DO THIS}

1 reply

Although the user timezone is set and query_timezone is passed as mentioned above, when creating a new tile in a dashboard, the timezone is set to Application timezone