resolveTimezoneId()
Home > @gooddata/sdk-model > resolveTimezoneId
resolveTimezoneId() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Resolves a dashboard timezone value to a concrete IANA timezone ID: the BROWSER_DETECTED sentinel resolves to the browser/runtime timezone, any other value is returned as-is.
This is the only supported way to turn IDashboardTimezoneConfig.timezoneId into a value usable in executions or exports — the sentinel must never leave the client unresolved.
Signature:
export declare function resolveTimezoneId(timezoneId: DashboardTimezoneId | undefined): string | undefined;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
timezoneId |
DashboardTimezoneId | undefined |
timezone value from the dashboard content |
Returns:
string | undefined