Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

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

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

Import

typescript
import { getTimeZone } from '@grafana/data';