Skip to content

Commit

Permalink
fixup: use UTC timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
rudiejd committed Jan 8, 2025
1 parent 2c1e51f commit 9aeee66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/arrow/disruptions/disruption_v2.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Arrow.Disruptions.DisruptionV2 do
field :is_active, :boolean
field :description, :string

timestamps()
timestamps(type: :utc_datetime)
end

@doc false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Arrow.Repo.Migrations.CreateDisruptionsv2 do
add :is_active, :boolean
add :description, :text

timestamps()
timestamps(type: :timestamptz)
end
end
end
4 changes: 2 additions & 2 deletions priv/repo/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ CREATE TABLE public.disruptionsv2 (
mode character varying(255),
is_active boolean,
description text,
inserted_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone NOT NULL
inserted_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL
);


Expand Down

0 comments on commit 9aeee66

Please sign in to comment.