Skip to content

charton API


charton API / @chart-on/core / index / timezoneChoices

Function: timezoneChoices() ​

timezoneChoices(now?): ChartSettingChoice[]

Defined in: packages/core/src/chart-settings.ts:129

The timezones a timezone setting offers: 'local' (labelled with the machine's zone), 'UTC', then every IANA zone Intl lists (every supported browser lists them), each labelled with its UTC offset at now (ms), e.g. "Asia/Jakarta (UTC+7)".

Parameters ​

now? ​

number = ...

Returns ​

ChartSettingChoice[]