]> granicus.if.org Git - ejabberd/commitdiff
Remove calls to deprecated functions
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 27 Sep 2017 09:43:59 +0000 (11:43 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 27 Sep 2017 09:43:59 +0000 (11:43 +0200)
src/node_flat_sql.erl

index 0f9a647310c5e8ee57a4414588da2fe81063d77c..877948018e34d9aba05aeb3769d57561e9125c21 100644 (file)
@@ -1027,12 +1027,12 @@ rsm_page(Count, Index, Offset, Items) ->
             last = Last}.
 
 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});
        _ -> Stamp
     end.
 decode_stamp(Stamp) ->
-    jlib:now_to_utc_string(decode_now(Stamp)).
+    xmpp_utils:encode_timestamp(decode_now(Stamp)).
 
 encode_now({T1, T2, T3}) ->
     <<(misc:i2l(T1, 6))/binary, ":",