OPCFoundation / UA-.NETStandard-Samples

Other
245 stars 179 forks source link

Initialize FILETIME with DateTimeKind.Utc #601

Closed binarystorm closed 2 months ago

binarystorm commented 3 months ago

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.