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

Emscripten support #149

Open
curiousdannii opened this issue Feb 10, 2025 · 0 comments
Open

Emscripten support #149

curiousdannii opened this issue Feb 10, 2025 · 0 comments

Comments

@curiousdannii
Copy link

curiousdannii commented Feb 10, 2025

Emscripten doesn't bundle the zoneinfo file, but it does support the libc and C++ time libraries, through which you can get the timezone.

Would it be in scope to use the libc functions in this crate, or is this really purely about searching zoneinfo, so that Emscripten support would need to be pushed up to Chrono etc?

Looks like Windows is using a completely different method, so I guess it would be fine for Emscripten support to go through libc then?

Oh, but I see this crate is about returning a timezone name, not just an offset. I don't think you can do that in libc, and I'm not sure if that part of the C++ lib is supported in Emscripten. It might be better to just ask Chrono to use libc for its calculations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant