mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-26 22:35:31 +02:00
Remove calls to deprecated functions
This commit is contained in:
parent
f464189819
commit
22435ca562
|
@ -1027,12 +1027,12 @@ rsm_page(Count, Index, Offset, Items) ->
|
||||||
last = Last}.
|
last = Last}.
|
||||||
|
|
||||||
encode_stamp(Stamp) ->
|
encode_stamp(Stamp) ->
|
||||||
case jlib:datetime_string_to_timestamp(Stamp) of
|
case xmpp_utils: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) ->
|
||||||
jlib:now_to_utc_string(decode_now(Stamp)).
|
xmpp_utils:encode_timestamp(decode_now(Stamp)).
|
||||||
|
|
||||||
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