jsonkenl / xlsxir

Xlsx parser for the Elixir language.
MIT License
215 stars 85 forks source link

Fix FunctionClauseError when datetime type value exists in the cell #107

Closed wootaw closed 1 year ago

wootaw commented 3 years ago

** (FunctionClauseError) no function clause matching in Date.convert/2

The following arguments were given to Date.convert/2:

 # 1
 :invalid_format

 # 2
 Calendar.ISO

Attempted function clauses (showing 2 out of 2):

 def convert(%{calendar: calendar, year: year, month: month, day: day}, calendar)
 def convert(%{calendar: calendar} = date, target_calendar)