diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-11-13 10:44:53 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-11-13 10:44:53 +0300 |
commit | b8f22ff538da8297b66010912b3fc91e46ded5c0 (patch) | |
tree | c157db8f8325fbf136dfafaa9abdd477abecc0c8 /src/xmpp_codec.erl | |
parent | Uncomment forgotten block of code (diff) |
Deprecate most of the functions from jlib.erl
Diffstat (limited to 'src/xmpp_codec.erl')
-rw-r--r-- | src/xmpp_codec.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xmpp_codec.erl b/src/xmpp_codec.erl index 8713365cc..2931baaa4 100644 --- a/src/xmpp_codec.erl +++ b/src/xmpp_codec.erl @@ -6782,10 +6782,9 @@ dec_jid(Val) -> J -> J end. -enc_utc(Val) -> jlib:now_to_utc_string(Val). +enc_utc(Val) -> xmpp_util:encode_timestamp(Val). -dec_utc(Val) -> - {_, _, _} = jlib:datetime_string_to_timestamp(Val). +dec_utc(Val) -> xmpp_util:decode_timestamp(Val). enc_tzo({H, M}) -> Sign = if H >= 0 -> <<>>; |