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

Refactor updater #49

Open
NickNeck opened this issue Sep 8, 2024 · 0 comments
Open

Refactor updater #49

NickNeck opened this issue Sep 8, 2024 · 0 comments

Comments

@NickNeck
Copy link
Member

NickNeck commented Sep 8, 2024

The plan is to make it clearer when tzi updates the IANA tzdb by downloading tzdataXXXX.tar.gz and when the already available tzdb is transformed by the config to create the data that is used by tzi.

The available data is always in priv/data.etf. tzi uses the data in the DataStore at runtime.
Update: download("iana/tzdataXXXX.tar.gz") |> parse |> transform |> write("priv/data.etf")
Configure: read("priv/data.etf") |> configure |> DataStore.put

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