aboutsummaryrefslogtreecommitdiff
path: root/src/mod_time.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_time.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 'src/mod_time.erl')
-rw-r--r--src/mod_time.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_time.erl b/src/mod_time.erl
index 6c4a0bae5..1db3abe13 100644
--- a/src/mod_time.erl
+++ b/src/mod_time.erl
@@ -54,7 +54,7 @@ process_local_iq(#iq{type = set, lang = Lang} = IQ) ->
Txt = <<"Value 'set' of 'type' attribute is not allowed">>,
xmpp:make_error(IQ, xmpp:err_not_allowed(Txt, Lang));
process_local_iq(#iq{type = get} = IQ) ->
- Now = p1_time_compat:timestamp(),
+ Now = erlang:timestamp(),
Now_universal = calendar:now_to_universal_time(Now),
Now_local = calendar:universal_time_to_local_time(Now_universal),
Seconds_diff =