]> granicus.if.org Git - ejabberd/commitdiff
Use p1_time_compat util for generating timestamp
authorMickael Remond <mremond@process-one.net>
Wed, 9 Mar 2016 19:57:01 +0000 (20:57 +0100)
committerMickael Remond <mremond@process-one.net>
Wed, 9 Mar 2016 19:57:01 +0000 (20:57 +0100)
src/elixir_logger_backend.erl

index 6bd5b638e09930e6d86084f7b9fd62f5271d225f..8c634934c8eec2d0b21eef6d0b73c8e1ed5a697e 100644 (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);