calendar_interval icon indicating copy to clipboard operation
calendar_interval copied to clipboard

Wrong last element of the interval at years end

Open wojtekmach opened this issue 3 years ago • 0 comments

Today we have:

iex> Enum.to_list(~I"2020-10/11")
[~I"2020-10", ~I"2020-11/12"]

and consequently we have:

iex> CalendarInterval.relation(~I"2020-10/11", ~I"2020-10/12")
:equal

which is wrong, we should have:

iex> Enum.to_list(~I"2020-10/11")
[~I"2020-10", ~I"2020-11"]

wojtekmach avatar Jul 07 '20 16:07 wojtekmach