Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose the standard timezone database provider for JS and Wasm #324

Open
dkhalanskyjb opened this issue Dec 1, 2023 · 3 comments
Open
Labels
breaking change This could break existing code timezone The model and API of timezones
Milestone

Comments

@dkhalanskyjb
Copy link
Collaborator

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.

Related: #178
Previous discussion: #245

@vdshb
Copy link

vdshb commented Mar 12, 2024

It might be valuable to add to the list an option to use c/c++ timezone databases for wasm target. E.g. the one which is used for Kotlin/Native.

@dkhalanskyjb
Copy link
Collaborator Author

@vdshb, please explain what you mean. In Kotlin/Native for Darwin and Linux, we used to use a C++ library that queried /usr/share/zoneinfo for us; now, even this code is in pure Kotlin. As I understand it, Wasm doesn't have access to /usr/share/zoneinfo.

@dkhalanskyjb dkhalanskyjb added this to the 0.7.0 milestone Apr 12, 2024
@vdshb
Copy link

vdshb commented Jun 22, 2024

@dkhalanskyjb My bad, I thought it works another way. It looks like WASI team implementing their own API to get timezone data WebAssembly/wasi-clocks#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This could break existing code timezone The model and API of timezones
Projects
None yet
Development

No branches or pull requests

2 participants