palantir/blueprint

Consider expanding list of available timezones to all those supported by `Intl` browser API

开放

#6,305 创建于 2023年7月26日

 (3 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
P2Package: datetimeType: feature requesthelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Environment

  • Package version(s): @blueprintjs/datetime 5.0.7
  • Browser and OS versions: Chrome 114, macOS

Feature request

We should consider expanding the list of timezones available in <TimezoneSelect>. We could enable an option which supports all the timezones available using the Intl browser API. For example, Intl.suppportedValuesOf(“timeZone”) returns 429 entries in my browser. This is more items than the default list of timezones currently used by the component (250 items).

This feature could (in theory) exist in date-fns-tz, it has been requested but not implemented yet: https://github.com/marnusw/date-fns-tz/issues/232

Motivation

This feature is motivated by user requests to see timezones like America/Indiana/Indianapolis in a TimezoneSelect dropdown. We don't want to expose users to a very long list of timezones by default, but it would be nice make it an available option for certain use cases.

贡献者指南