The FILETIME variable shall be initialized with DateTimeKind.Utc.
OPC UA expects timestamps to be in UTC: https://reference.opcfoundation.org/Core/Part3/v104/docs/8.38
The Kind property of DateTime is initialized to Unspecified and needs to be explicitly set to UTC.
Types of changes
What types of changes does your code introduce?
Put an x in the boxes that apply. You can also fill these out after creating the PR.
[X] Bugfix (non-breaking change which fixes an issue)
[x] Enhancement (non-breaking change which adds functionality)
[ ] Test enhancement (non-breaking change to increase test coverage)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected, requires version increase of Nuget packages)
[ ] Documentation Update (if none of the other choices apply)
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
Proposed changes
The FILETIME variable shall be initialized with DateTimeKind.Utc. OPC UA expects timestamps to be in UTC: https://reference.opcfoundation.org/Core/Part3/v104/docs/8.38 The Kind property of DateTime is initialized to Unspecified and needs to be explicitly set to UTC.
Types of changes
What types of changes does your code introduce? Put an
x
in the boxes that apply. You can also fill these out after creating the PR.Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
Straight forward fix.