Closed OldhamMade closed 2 years ago
defp add_offset_data(time_zones) do
Enum.map(time_zones, fn %{time_zone: time_zone_id} = time_zone ->
{:ok, periods} = Tz.PeriodsProvider.periods(time_zone_id)
+ IO.inspect(Enum.count(periods), label: "found periods for timezone #{time_zone_id}")
{utc_offset, dst_offset, zone_abbr, dst_zone_abbr} =
case hd(periods) do
==> tz_extra
Compiling 7 files (.ex)
found periods for timezone Europe/Andorra: 16
found periods for timezone Asia/Dubai: 0
== Compilation error in file lib/compiler_runner.ex ==
Duplicate issue with https://github.com/mathieuprog/tz_extra/issues/3
See https://github.com/mathieuprog/tz_extra/issues/3 for further updates.
Fixed in 0.20.1
This is on macOS. I get the same if I set
MIX_ENV=prod
.