From b7414f8837f5bc30f3442af6de7c514186807402 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 8 Mar 2016 00:30:21 +0100 Subject: [PATCH] Update mod_logxml to work with ejabberd 16.02 --- mod_logxml/src/mod_logxml.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_logxml/src/mod_logxml.erl b/mod_logxml/src/mod_logxml.erl index ac822c1..37c7d66 100644 --- a/mod_logxml/src/mod_logxml.erl +++ b/mod_logxml/src/mod_logxml.erl @@ -199,7 +199,7 @@ add_log(Io, Timezone, ShowIP, {Orientation, From, To, Packet}, _OSD) -> TimestampISO = get_now_iso(Timezone), io:fwrite(Io, "~s~n", [Orientation, jlib:jid_to_string(LocalJID), LocalIPS, - TimestampISO, binary_to_list(xml:element_to_binary(Packet))]). + TimestampISO, binary_to_list(fxml:element_to_binary(Packet))]). %% ------------------- %% File @@ -263,7 +263,7 @@ get_now_iso(Timezone) -> local -> calendar:now_to_local_time(now()); universal -> calendar:now_to_universal_time(now()) end, - binary_to_list(jlib:timestamp_to_iso(TimeStamp)). + binary_to_list(jlib:timestamp_to_legacy(TimeStamp)). calc_div(A, B) when is_integer(A) and is_integer(B) and (B /= 0) -> A/B;