-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
breaking changeThis could break existing codeThis could break existing codetimezoneThe model and API of timezonesThe model and API of timezones
Milestone
Description
There's a pure Kotlin implementation of the datetime library for Kotlin/Native. This code can be used directly to implement the JS and Wasm targets—except for timezone database access.
- There's a discussion about exposing the timezone database via WASI: System collation and system timezone data WebAssembly/WASI#25
- We could keep using js-joda's (https://github.com/js-joda/js-joda) timezone database, even if we reimplement the code for database calculations.
- Maybe other libraries provide timezone database access? There is https://www.npmjs.com/package/@vvo/tzdb, but it doesn't seem to have historical data.
- There is timezone support in JS's
Intl
for formatting (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat); maybe the underlying data is available somehow. - We could ship our own timezone databases.
sureshg and kevincianfarini
Metadata
Metadata
Assignees
Labels
breaking changeThis could break existing codeThis could break existing codetimezoneThe model and API of timezonesThe model and API of timezones