tzdata icon indicating copy to clipboard operation
tzdata copied to clipboard

Ability to download fresh tz release during build

Open teamon opened this issue 5 years ago • 3 comments

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.

teamon avatar May 22 '20 10:05 teamon

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.

vfsoraki avatar Aug 15 '22 13:08 vfsoraki

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.

lau avatar Jun 09 '23 21:06 lau

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.

vfsoraki avatar Sep 14 '23 16:09 vfsoraki