Skip to content

Commit

Permalink
Set timezone to UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
chiroptical committed Sep 10, 2024
1 parent abe8b5b commit 473dcf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pgo.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
[kernel,
stdlib,
backoff,
opentelemetry_api,
pg_types
]},
{env,[]},
Expand Down
2 changes: 2 additions & 0 deletions test/pgo_datetime_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ end_per_group(_, _Config) ->
ok.

select(_Config) ->
pgo:query("SET TIMEZONE TO 'UTC'"),

?assertMatch(#{command := select,
rows := [{{2012,1,17}}]},
pgo:query("select '2012-01-17 10:54:03.45'::date")),
Expand Down

0 comments on commit 473dcf5

Please sign in to comment.