Skip to content

Commit

Permalink
construct FILETIME with DateTimeKind.Utc (#601)
Browse files Browse the repository at this point in the history
The FILETIME variable shall be initialized with DateTimeKind.Utc.
Co-authored-by: Dominique Stucki <[email protected]>
  • Loading branch information
binarystorm authored May 6, 2024
1 parent c1c3fb1 commit a3e0489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ComIOP/Common/Common/ComUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private static extern int FormatMessageW(
/// <summary>
/// The base for the WIN32 FILETIME structure.
/// </summary>
private static readonly DateTime FILETIME_BaseTime = new DateTime(1601, 1, 1);
private static readonly DateTime FILETIME_BaseTime = new DateTime(1601, 1, 1, 0, 0, 0, DateTimeKind.Utc);

/// <summary>
/// WIN32 GUID struct declaration.
Expand Down

0 comments on commit a3e0489

Please sign in to comment.