Browse Source

use universal time, still fails

Anton Lebedevich 13 years ago
parent
commit
2f55b009d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test_src/pgsql_tests.erl

+ 1 - 1
test_src/pgsql_tests.erl

@@ -647,7 +647,7 @@ check_type(Type, In, Out, Values, Column) ->
 compare(_Type, null, null) -> true;
 compare(_Type, null, null) -> true;
 compare(float4, V1, V2)    -> abs(V2 - V1) < 0.000001;
 compare(float4, V1, V2)    -> abs(V2 - V1) < 0.000001;
 compare(float8, V1, V2)    -> abs(V2 - V1) < 0.000000000000001;
 compare(float8, V1, V2)    -> abs(V2 - V1) < 0.000000000000001;
-compare(timestamp, V1 = {_,_,_}, V2) -> calendar:now_to_local_time(V1) =:= V2;
+compare(timestamp, V1 = {_,_,_}, V2) -> calendar:now_to_universal_time(V1) =:= V2;
 compare(_Type, V1, V2)     -> V1 =:= V2.
 compare(_Type, V1, V2)     -> V1 =:= V2.
 
 
 %% flush mailbox
 %% flush mailbox