pgo
pgo copied to clipboard
Test is sensitive to timezone set on Postgresql server
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