Ability to download fresh tz release during build
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.
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.
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.
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.