Comments (5)
Hi Jean-Philippe 👋
I added a way to achieve this under this section: https://github.com/mathieuprog/tz#automatic-time-zone-data-updates
What do you think?
from tz.
Hey @mathieuprog
thanks for the documentation improvement (I think I could have done this myself... shame on me): it does the trick!
I had an error with the :calendar_storefront
part in your doc: I copied it without thinking (just follow the example) but I had a red warning (didn't make my test suite fail though):
You have configured application :calendar_storefront in your configuration file,
but the application is not available.
This usually means one of:
1. You have not added the application as a dependency in a mix.exs file.
2. You are configuring an application that does not really exist.
Please ensure :calendar_storefront exists or remove the configuration.
so I removed config :calendar_storefront, env: Mix.env()
from my config.exs
from tz.
Whoops! That's the name of my app haha. I corrected the Readme file. You should replace with your app name:
config :my_app, env: Mix.env()
Same for:
|> append_if(Application.get_env(:my_app, :env) != :test, {Tz.UpdatePeriodically, []})
Replace :my_app
by your app name as you usually do in your config.exs
file.
from tz.
If you have any other questions feel free to ask! I'll close this issue now.
Btw thanks for bringing this up, I updated my own app with this code as I was having the same issue 😄
from tz.
Yes :my_app
is self explanatory :) Thanks for the follow up!
from tz.
Related Issues (20)
- Allow Tz.WatchPeriodically to accept and call a function when triggered. HOT 2
- Is it possible to make the custom data dir a runtime value? HOT 8
- Zone abbreviation lookup inconsistent (EST and EDT) HOT 5
- WatchPeriodically keeps complaining about a new version HOT 19
- Add option to force the use of a specific iana version? HOT 1
- Error with Iana version 2023a HOT 5
- (RuntimeError) unexpected case: 3 ongoing rules for rule "Palestine" (2023c) HOT 3
- Logger.warn/1 is deprecated on Elixir 1.15 in favour of Logger.warning/2 HOT 2
- Release crashes when configuring data_dir at runtime HOT 7
- print a warning but allow the app to start if there's an HTTP error HOT 2
- Time converting and back is not symmetrical HOT 2
- required files missing in CI HOT 13
- Warnings for behaviour not implented in Elixir 1.17 HOT 1
- 2024b data file causes parsing error HOT 3
- Failing to start `TzUpdatePeriodically` HOT 10
- GenServer :tzdata_release_updater terminating * 2nd argument: not a tuple HOT 1
- Support for Timex to replace Tzdata HOT 6
- Avoid making requests to https://data.iana.org for tz data updates
- `(CaseClauseError) no case clause matching: nil` for some lookups HOT 10
- Out of memory when recompiling time zone periods on a memory-limited system HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tz.