pgo icon indicating copy to clipboard operation
pgo copied to clipboard

Test is sensitive to timezone set on Postgresql server

Open chiroptical opened this issue 1 year ago • 0 comments

I had this issue on my OSX machine which was set to timezone = 'America/New_York'

%%% pgo_datetime_SUITE ==> erl_datetime.select: FAILED
%%% pgo_datetime_SUITE ==>
Failure/Error: ?assertMatch(# { command := select , rows := [ { { { 2012 , 1 , 17 } , { 10 , 54 , 3.45 } } } ] }, pgo : query ( "select '2012-01-17 10:54:03.45'::timestamptz" ))
  expected: = # { command := select , rows := [ { { { 2012 , 1 , 17 } , { 10 , 54 , 3.45 } } } ] }
       got: #{command => select,num_rows => 1,
              rows => [{{{2012,1,17},{15,54,3.45}}}]}
      line: 87

chiroptical avatar Sep 10 '24 02:09 chiroptical