Comments (8)
I actually have no experience with builds. What about config/runtime.exs
?
from tz.
That won't work because your have the following code directly in the module body:
@custom_data_dir Application.get_env(:tz, :data_dir)
So it is evaluated when the library is compiled, not when runtime is launched.
from tz.
What about changing that line to
defp custom_data_dir() do
Application.get_env(:tz, :data_dir)
end
from tz.
Yep sure, that would work.
from tz.
Can you try it out and check if your deployments work with different config? And send a PR?
Or are you certain this will just do?
from tz.
Sorry we switched to tzdata when we faced that problem, I have currently no app using tz.
from tz.
This has been added in version 0.21.1.
Note that tzdata has bugs, sometimes may return wrong times or raise errors. That's why I created this library in the first place, I would never have spent months writing it otherwise.
Only tz
and time_zone_info
output correct times.
from tz.
Hi,
Yes I know, that is why we used tz and I raised this issue but we needed to configure the custom dir at runtime to work well with our docker deployment. That was for CRON-like jobs, just dealing with 2022+ dates.
I'll try again tz on a future iteration but I honestly don't know when I will work on this project again.
from tz.
Related Issues (18)
- Wrong zone_abbr in some time zones HOT 3
- Allow Tz.WatchPeriodically to accept and call a function when triggered. HOT 2
- 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
- Question: avoid compile on unit test but keep update in app HOT 5
- Suggestion: Add a CHANGELOG HOT 2
- `(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.