bitwalker / timex_ecto

An adapter for using Timex DateTimes with Ecto
MIT License
162 stars 68 forks source link

protocol Timex.Protocol not implemented for... #40

Closed justinbkay closed 8 years ago

justinbkay commented 8 years ago

Phoenix 1.2.0 ecto master timex ecto 3.0.3 timex 3.0.5

protocol Timex.Protocol not implemented for %{"day" => "6", "month" => "9", "year" => "2013"}

When using a date helper in a form the cast in the changeset gives an error about not implementing a protocol for the datastructure %{"day" => "6", "month" => "9", "year" => "2013"}

bitwalker commented 8 years ago

I can implement Timex.Protocol for map, it hasn't yet been done, but is pretty straightforward. Can you open an issue here? I'll track it there.