mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
Fix xref error
This commit is contained in:
parent
81df1ae3af
commit
8c026582ab
@ -1027,12 +1027,15 @@ rsm_page(Count, Index, Offset, Items) ->
|
|||||||
last = Last}.
|
last = Last}.
|
||||||
|
|
||||||
encode_stamp(Stamp) ->
|
encode_stamp(Stamp) ->
|
||||||
case xmpp_utils:decode_timestamp(Stamp) of
|
case catch xmpp_util:decode_timestamp(Stamp) of
|
||||||
{MS,S,US} -> encode_now({MS,S,US});
|
{MS,S,US} -> encode_now({MS,S,US});
|
||||||
_ -> Stamp
|
_ -> Stamp
|
||||||
end.
|
end.
|
||||||
decode_stamp(Stamp) ->
|
decode_stamp(Stamp) ->
|
||||||
xmpp_utils:encode_timestamp(decode_now(Stamp)).
|
case catch xmpp_util:encode_timestamp(decode_now(Stamp)) of
|
||||||
|
TimeStamp when is_binary(TimeStamp) -> TimeStamp;
|
||||||
|
_ -> Stamp
|
||||||
|
end.
|
||||||
|
|
||||||
encode_now({T1, T2, T3}) ->
|
encode_now({T1, T2, T3}) ->
|
||||||
<<(misc:i2l(T1, 6))/binary, ":",
|
<<(misc:i2l(T1, 6))/binary, ":",
|
||||||
|
Loading…
Reference in New Issue
Block a user