mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Use p1_time_compat util for generating timestamp
This commit is contained in:
parent
f4ee8a2505
commit
9e6efaf9bc
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ normalize_pid(Metadata) ->
|
||||||
|
|
||||||
%% Return timestamp with milliseconds
|
%% Return timestamp with milliseconds
|
||||||
timestamp(Time, UTCLog) ->
|
timestamp(Time, UTCLog) ->
|
||||||
{_, _, Micro} = erlang:timestamp(),
|
{_, _, Micro} = p1_time_compat:timestamp(),
|
||||||
{Date, {Hours, Minutes, Seconds}} =
|
{Date, {Hours, Minutes, Seconds}} =
|
||||||
case UTCLog of
|
case UTCLog of
|
||||||
true -> calendar:now_to_universal_time(Time);
|
true -> calendar:now_to_universal_time(Time);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue