How to upgrade an app using timex_ecto to Phoenix 1.4 and Ecto 3.0

Just to clarify - Ecto uses the native elixir datetime types since Ecto 2.1 released almost 2 years ago. If the timex_ecto package is not needed now, it wasn’t needed back then as well. It’s just that now the old custom ecto datetime types were removed after being deprecated for almost 2 years.

The things in this area that Ecto 3 changes are that the low-level “raw” query interface also returns the elixir types instead of the erlang-style tuples and that we have the explicit separation of _usec and non-usec types.

6 Likes