diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2020-09-15 12:11:00 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2020-09-15 12:11:15 +0200 |
commit | b89f3c442c3c005c5cf66dbd75d52c68634d3ba8 (patch) | |
tree | 8b27fc74b21b7c2c7f94db0f917fa2ccbc37b404 /src | |
parent | Refer to the XEP for standard names (processone/docs.ejabberd.im#97) (diff) |
Use os time instead of system time in values returned by mod_time
This timer should correctly work with time warps, and should fix
issue #3390
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_time.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_time.erl b/src/mod_time.erl index 778405660..8f822cf78 100644 --- a/src/mod_time.erl +++ b/src/mod_time.erl @@ -55,7 +55,7 @@ process_local_iq(#iq{type = set, lang = Lang} = IQ) -> Txt = ?T("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 = erlang:timestamp(), + Now = os:timestamp(), Now_universal = calendar:now_to_universal_time(Now), Now_local = calendar:universal_time_to_local_time(Now_universal), Seconds_diff = |