From a3e0489e3ae518c369ce7b87c4c936d4a799f87a Mon Sep 17 00:00:00 2001 From: binarystorm Date: Mon, 6 May 2024 16:32:45 +0200 Subject: [PATCH] construct FILETIME with DateTimeKind.Utc (#601) The FILETIME variable shall be initialized with DateTimeKind.Utc. Co-authored-by: Dominique Stucki --- ComIOP/Common/Common/ComUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ComIOP/Common/Common/ComUtils.cs b/ComIOP/Common/Common/ComUtils.cs index 367b3459f..f622be531 100644 --- a/ComIOP/Common/Common/ComUtils.cs +++ b/ComIOP/Common/Common/ComUtils.cs @@ -163,7 +163,7 @@ private static extern int FormatMessageW( /// /// The base for the WIN32 FILETIME structure. /// - 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); /// /// WIN32 GUID struct declaration.