diff --git a/lib/philomena/image_faves/image_fave.ex b/lib/philomena/image_faves/image_fave.ex index de05db90..50b7b49a 100644 --- a/lib/philomena/image_faves/image_fave.ex +++ b/lib/philomena/image_faves/image_fave.ex @@ -10,7 +10,7 @@ defmodule Philomena.ImageFaves.ImageFave do schema "image_faves" do belongs_to :user, User, primary_key: true belongs_to :image, Image, primary_key: true - timestamps(inserted_at: :created_at, updated_at: false) + timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime) end @doc false diff --git a/lib/philomena/image_hides/image_hide.ex b/lib/philomena/image_hides/image_hide.ex index ce6cc239..bc52bb8d 100644 --- a/lib/philomena/image_hides/image_hide.ex +++ b/lib/philomena/image_hides/image_hide.ex @@ -10,7 +10,7 @@ defmodule Philomena.ImageHides.ImageHide do schema "image_hides" do belongs_to :user, User, primary_key: true belongs_to :image, Image, primary_key: true - timestamps(inserted_at: :created_at, updated_at: false) + timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime) end @doc false diff --git a/lib/philomena/image_votes/image_vote.ex b/lib/philomena/image_votes/image_vote.ex index bca9b8d8..d3dd1689 100644 --- a/lib/philomena/image_votes/image_vote.ex +++ b/lib/philomena/image_votes/image_vote.ex @@ -11,7 +11,7 @@ defmodule Philomena.ImageVotes.ImageVote do belongs_to :user, User, primary_key: true belongs_to :image, Image, primary_key: true field :up, :boolean - timestamps(inserted_at: :created_at, updated_at: false) + timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime) end @doc false diff --git a/lib/philomena/poll_votes/poll_vote.ex b/lib/philomena/poll_votes/poll_vote.ex index 6f87abfb..ca4f4cd4 100644 --- a/lib/philomena/poll_votes/poll_vote.ex +++ b/lib/philomena/poll_votes/poll_vote.ex @@ -11,7 +11,7 @@ defmodule Philomena.PollVotes.PollVote do field :rank, :integer - timestamps(inserted_at: :created_at, updated_at: false) + timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime) end @doc false diff --git a/lib/philomena/users/user_token.ex b/lib/philomena/users/user_token.ex index a30c6b42..7a8b484f 100644 --- a/lib/philomena/users/user_token.ex +++ b/lib/philomena/users/user_token.ex @@ -19,7 +19,7 @@ defmodule Philomena.Users.UserToken do field :sent_to, :string belongs_to :user, Philomena.Users.User - timestamps(inserted_at: :created_at, updated_at: false) + timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime) end @doc """ diff --git a/lib/philomena/versions/version.ex b/lib/philomena/versions/version.ex index d8e769d2..5c8baf49 100644 --- a/lib/philomena/versions/version.ex +++ b/lib/philomena/versions/version.ex @@ -17,7 +17,7 @@ defmodule Philomena.Versions.Version do field :edit_reason, :string, virtual: true field :difference, :any, virtual: true - timestamps(inserted_at: :created_at, updated_at: false) + timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime) end @doc false