I’m using phoenix as an API that serves JSON… I have a controller action that looks like this…
def index(conn, _params) do
blogs = Resources.list_blogs()
# IO.inspect blogs
render(conn, "index.json", blogs: blogs)
end
When I inspect the blogs, just before the render
code, it shows that I have timestamps
but when it gets returned in my API client everything but the timestamps get returned.
I’m sure there’s some easy way to render the timestamps, what am I missing? Please help…