anchor.diff:  
   -spec(get_positions(DeviceId :: non_neg_integer(), From :: non_neg_integer(), To :: non_neg_integer()) -> {ok, [#position{}]}).
   get_positions(DeviceId, From, To) ->
  -    gen_server:call(?SERVER, {get_positions, #{<<"deviceId">> => id_to_objectid(DeviceId), <<"fixTime">> => {'$gte', From, '$lte', To}}}).
  +    gen_server:call(?SERVER, {get_positions, #{<<"deviceId">> => id_to_objectid(DeviceId), <<"fixTime">> => {'$gte', seconds_to_timestamp(From), '$lte', seconds_to_timestamp(To)}}}).
   
   %%--------------------------------------------------------------------
   %% @doc
  
positive.code:        <<"_id">> => id_to_objectid(Rec#position.id),
         <<"type">> => Rec#position.type,
         <<"protocol">> => Rec#position.protocol,
         <<"serverTime">> => Rec#position.serverTime,
         <<"deviceTime">> => Rec#position.deviceTime,
         <<"fixTime">> => Rec#position.fixTime,
         <<"deviceId">> => id_to_objectid(Rec#permission.deviceId),
         <<"outdated">> => Rec#position.outdated,
         <<"valid">> => Rec#position.valid,
         <<"latitude">> => Rec#position.latitude,
  
negative.code:        <<"name">> => Rec#device.name,
         <<"uniqueId">> => Rec#device.uniqueId,
         <<"status">> => Rec#device.status,
         <<"lastUpdate">> => seconds_to_timestamp(Rec#device.lastUpdate),
         <<"positionId">> => Rec#device.positionId
       };
  to_map(position, Rec) ->
  