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.

貢獻者指南