getTimeZone variable

getTimeZone variable

Used to get the current selected time zone. If a valid time zone is passed in the options it will be returned. If no valid time zone is passed either the time zone configured for the user account will be returned or the default for Grafana.

Signature

  1. getTimeZone: <T extends TimeZoneOptions>(options?: T | undefined) => TimeZone

Import

  1. import { getTimeZone } from '@grafana/data';