You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iex> DateTime.now("America/New_Yor", Tzdata.TimeZoneDatabase)
** (MatchError) no match of right hand side value: {:error, :not_found}
(tzdata) lib/tzdata.ex:168: Tzdata.periods_for_time/3
(tzdata) lib/tzdata/time_zone_database.ex:15: Tzdata.TimeZoneDatabase.time_zone_period_from_utc_iso_days/2
(elixir) lib/calendar/datetime.ex:443: DateTime.shift_zone_for_iso_days_utc/5
Per DateTime.now docs, it should return {:error, :time_zone_not_found} instead.
The text was updated successfully, but these errors were encountered:
I'm using Elixir master and tzdata master.
Per
DateTime.now
docs, it should return{:error, :time_zone_not_found}
instead.The text was updated successfully, but these errors were encountered: