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

Ability to download fresh tz release during build #99

Open
teamon opened this issue May 22, 2020 · 3 comments
Open

Ability to download fresh tz release during build #99

teamon opened this issue May 22, 2020 · 3 comments

Comments

@teamon
Copy link

teamon commented May 22, 2020

Would it be possible to somehow prefetch the fresh tz release during app release assembly?

Maybe some kind of mix task (mix tzdata.download) that would override the version bundled with tzdata package?

The main reason for this is to minimise the possibility of new release starting with old tzdata.

@vfsoraki
Copy link

Our reason for this is for when we deploy a new version, and there are users already on some pages. If we don’t have a cache of timezone database, the for a few seconds we don’t have any timezone information and pages will just crash and restart until database is downloaded (LiveView pages).

This will help us do it during the build, and update it in runtime if necessary.

@lau
Copy link
Owner

lau commented Jun 9, 2023

Have you tried putting a newer version of the .ets file on the server? As described here: https://github.com/lau/tzdata#data-directory-and-releases

If we don’t have a cache of timezone database

There is a version of the timezone database included in the package.

@vfsoraki
Copy link

I don’t recall what we did, and we moved away from LV anyway (for other reasons) so I can’t check it out. Maybe it was some misconfiguration from us, I’m not sure what caused it.

Good to know it’s included.

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

3 participants