Closed wmnnd closed 7 years ago
Some more context: I’m trying this with Elixir 1.3.3, timex_ecto 3.0.5 and timex 3.1.5. Researching the problem, I also tried the example given in #16 and it doesn’t work either:
iex> Timex.Ecto.DateTime.cast!("2016-02-02T12:30:00Z")
# :error
Could you upgrade to timex_ecto 3.1.0? Your example code works as expected there.
I just published it, sorry about that!
Hi there,
I was trying out timex_ecto and now I have encountered the problem that I can’t seem to cast ISO 8601 strings into Timex.Ecto.Datetime through a changeset.
Say I have the following Ecto Schema:
When I try to cast ISO 8601 strings, it works fine with Ecto.DateTime while Timex.Ecto.DateTime fails:
Am I missing something here? Unfortunately, the Timex docs don’t mention changesets at all.