Skip to content

Commit 81989b1

Browse files
committed
trace2: exit message time in utc
We are currently writing exit message times in local rather than UTC time. This change updates to UTC time to align with the expectations of the Trace2 API.
1 parent 5773a39 commit 81989b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/Core/Trace2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ private void WriteExit(int code, string filePath = "", int lineNumber = 0)
426426
{
427427
Event = Trace2Event.Exit,
428428
Sid = _sid,
429-
Time = DateTimeOffset.Now,
429+
Time = DateTimeOffset.UtcNow,
430430
File = Path.GetFileName(filePath),
431431
Line = lineNumber,
432432
Code = code,

0 commit comments

Comments
 (0)