Use datetime with TZ for posts timestamps

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-10-13 20:42:15 +02:00
parent 93cecbe49c
commit 86e1e84247
2 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ defmodule Mobilizon.Posts.Post do
belongs_to(:picture, Picture, on_replace: :update)
many_to_many(:tags, Tag, join_through: "posts_tags", on_replace: :delete)
timestamps()
timestamps(type: :utc_datetime)
end
@required_attrs [