aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_log.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2019-02-27 09:56:20 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2019-02-27 09:56:31 +0100
commit538f35d05a9bb25f24b30ea43b07a36cfc043e12 (patch)
treeedb9621c8b41f5482b6fd9da7871c2b062b00fc8 /src/mod_muc_log.erl
parentRemove now() calls that sneaked in in pull requests (diff)
Replace code using p1_time_compat wrapper with native functions
Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
Diffstat (limited to '')
-rw-r--r--src/mod_muc_log.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_muc_log.erl b/src/mod_muc_log.erl
index 42a9cc0a5..3e4f67247 100644
--- a/src/mod_muc_log.erl
+++ b/src/mod_muc_log.erl
@@ -309,7 +309,7 @@ add_message_to_log(Nick1, Message, RoomJID, Opts,
Room = get_room_info(RoomJID, Opts),
Nick = htmlize(Nick1, FileFormat),
Nick2 = htmlize_nick(Nick1, FileFormat),
- Now = p1_time_compat:timestamp(),
+ Now = erlang:timestamp(),
TimeStamp = case Timezone of
local -> calendar:now_to_local_time(Now);
universal -> calendar:now_to_universal_time(Now)
@@ -625,7 +625,7 @@ put_header_script(F) ->
put_room_config(_F, _RoomConfig, _Lang, plaintext) ->
ok;
put_room_config(F, RoomConfig, Lang, _FileFormat) ->
- {_, Now2, _} = p1_time_compat:timestamp(),
+ {_, Now2, _} = erlang:timestamp(),
fw(F, <<"<div class=\"rc\">">>),
fw(F,
<<"<div class=\"rct\" onclick=\"sh('a~p');return "
@@ -642,7 +642,7 @@ put_room_occupants(_F, _RoomOccupants, _Lang,
ok;
put_room_occupants(F, RoomOccupants, Lang,
_FileFormat) ->
- {_, Now2, _} = p1_time_compat:timestamp(),
+ {_, Now2, _} = erlang:timestamp(),
%% htmlize
%% The default behaviour is to ignore the nofollow spam prevention on links
%% (NoFollow=false)