Feature request: Warn when using implicit DateTime to DateTimeOffset conversion
The feature request is about the implicit DateTime to DateTimeOffset conversion (https://msdn.microsoft.com/en-us/library/system.datetimeoffset.op_implicit(v=vs.110).aspx ).
Which assumes a DateTime of Kind Unspecified to be in the local time zone.
Which happens to be plain wrong in server code, where the server's time zone should be irrelevant.
Which repeatedly lead to hard to detect bugs.
Which therefore should have been made explicit in the first place.
Would be great if ReSharper warned me about this dangerous conversion being applied!
Please sign in to leave a comment.
Hello!
Thank you for contacting us.
I've filed feature request in our issue tracker - https://youtrack.jetbrains.com/issue/RSRP-465629.
You are welcome to comment or vote for it.
Thank you.