Skip to content

Commit

Permalink
Time zone should be explicitly set for timestamp related tests (#89)
Browse files Browse the repository at this point in the history
* Set timezone to UTC

* Put back opentelemetry_api
  • Loading branch information
chiroptical authored Oct 31, 2024
1 parent abe8b5b commit 53fea8d
Showing 1 changed file with 2 additions and 0 deletions.
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 53fea8d

Please sign in to comment.