normalizeDashboardTimezoneConfig()
Home > @gooddata/sdk-model > normalizeDashboardTimezoneConfig
normalizeDashboardTimezoneConfig() 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.
Normalizes a dashboard timezone configuration to its canonical shape: unset and default (false/empty) properties are dropped, and a configuration with no effective values collapses to undefined. Apply before storing the configuration in state or persisting it, so that "all defaults" is always represented as an absent configuration rather than an empty object.
Signature:
export declare function normalizeDashboardTimezoneConfig(config: IDashboardTimezoneConfig | undefined): IDashboardTimezoneConfig | undefined;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
config |
IDashboardTimezoneConfig | undefined |
timezone configuration to normalize |
Returns:
IDashboardTimezoneConfig | undefined