Skip to content

Commit

Permalink
Merge pull request #950 from DuendeSoftware/brock/DefaultEventService…
Browse files Browse the repository at this point in the history
…_milliseconds

ensure we capture milliseconds of the current DateTime when creating events
  • Loading branch information
brockallen authored Jul 12, 2022
2 parents 4f30138 + f738142 commit 366557b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IdentityServer/Services/Default/DefaultEventService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected virtual bool CanRaiseEvent(Event evt)
protected virtual async Task PrepareEventAsync(Event evt)
{
evt.ActivityId = Context.HttpContext.TraceIdentifier;
evt.TimeStamp = Clock.UtcNow.UtcDateTime;
evt.TimeStamp = DateTime.UtcNow;
evt.ProcessId = Process.GetCurrentProcess().Id;

if (Context.HttpContext.Connection.LocalIpAddress != null)
Expand Down

0 comments on commit 366557b

Please sign in to comment.