tz
tz copied to clipboard
Time zone support for Elixir
I'm running an app on fly.io, with a 1GB container size. Using Tzdata I can boot without issue. However, switching to Tz I'm seeing this on startup: ```text 14:18:01.356 [info]...
I'm getting this error only in a particular CI env and not sure why, are those files that tz is meant to download or expects to already be there, and...
I just migrated a project from tzdata to your tz module, but I'm running into an issue when trying to run a release that sets the :data_dir config variable at...
I have some property tests that I wrote for a project where we are using tz. I ran into a specific date time that has an issue. Here is a...
I’m considering replacing tzdata with the tz library, but it’s difficult to make the switch if the tz library doesn’t provide equivalent support for the functions used in timex, which...
https://github.com/lau/tzdata/issues/149
Elixir [`DateTime.add/4`](https://hexdocs.pm/elixir/DateTime.html#add/4) supports a variety of units: > `unit` can be `:day`, `:hour`, `:minute`, `:second` or any subsecond precision from [`System.time_unit/0`](https://hexdocs.pm/elixir/System.html#t:time_unit/0). > The `:second`, `:millisecond`, `:microsecond` and `:nanosecond` time units...
When doing the following I get TZ to blow up ``` DateTime.new!(~D[1974-01-01], ~T[00:00:00], "America/Jamaica") ** (FunctionClauseError) no function clause matching in Tz.TimeZoneDatabase.find_period_for_wall_secs/2 The following arguments were given to Tz.TimeZoneDatabase.find_period_for_wall_secs/2: #...
Steps to reproduce: ```elixir DateTime.add(DateTime.utc_now(), 1_000, :nanosecond, Tz.TimeZoneDatabase) ``` (added a test that reproduces it)
Running the below raises an exception right now: ```elixir iex(2)> DateTime.add(DateTime.utc_now(), 1_000, :nanosecond, Tz.TimeZoneDatabase) ** (FunctionClauseError) no function clause matching in Tz.TimeZoneDatabase.iso_days_to_gregorian_seconds/1 The following arguments were given to Tz.TimeZoneDatabase.iso_days_to_gregorian_seconds/1: #...