diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-02-27 09:56:20 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-02-27 09:56:31 +0100 |
commit | 538f35d05a9bb25f24b30ea43b07a36cfc043e12 (patch) | |
tree | edb9621c8b41f5482b6fd9da7871c2b062b00fc8 /src/ejabberd_config.erl | |
parent | Remove 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/ejabberd_config.erl')
-rw-r--r-- | src/ejabberd_config.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index ed52c728b..6b0b70bef 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -73,7 +73,7 @@ start() -> [named_table, public, {read_concurrency, true}]), case load_file(ConfigFile) of {ok, State1} -> - UnixTime = p1_time_compat:system_time(seconds), + UnixTime = erlang:system_time(second), SharedKey = case erlang:get_cookie() of nocookie -> str:sha(p1_rand:get_string()); @@ -113,7 +113,7 @@ start(Hosts, Opts) -> [named_table, public, {read_concurrency, true}]), catch ets:new(ejabberd_db_modules, [named_table, public, {read_concurrency, true}]), - UnixTime = p1_time_compat:system_time(seconds), + UnixTime = erlang:system_time(second), SharedKey = case erlang:get_cookie() of nocookie -> str:sha(p1_rand:get_string()); |