25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Use p1_time_compat util for generating timestamp

This commit is contained in:
Mickael Remond 2016-03-09 20:57:01 +01:00
parent f4ee8a2505
commit 9e6efaf9bc

View File

@ -96,7 +96,7 @@ normalize_pid(Metadata) ->
%% Return timestamp with milliseconds
timestamp(Time, UTCLog) ->
{_, _, Micro} = erlang:timestamp(),
{_, _, Micro} = p1_time_compat:timestamp(),
{Date, {Hours, Minutes, Seconds}} =
case UTCLog of
true -> calendar:now_to_universal_time(Time);