Recently upgrade one application from .NET Core 3.1 to .NET 5. For some reason the DateTimeKind was Local in 3.1 and now it is UTC in .NET 5.
I created a simple project showing this problem,
https://github.com/ShehulCS/Dotnet5DateTimeIssue
Question,
- Can anyone please confirm from Microsoft docs, if this was the change they introduce between 2 versions, is it a bug or new design? Online search doesn't lead me to anything useful on this.