Просмотр исходного кода

use universal time, still fails

Anton Lebedevich 13 лет назад
Родитель
Сommit
2f55b009d8
1 измененных файлов с 1 добавлено и 1 удалено
  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(float4, V1, V2)    -> abs(V2 - V1) < 0.000001;
 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.
 
 %% flush mailbox