-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odata DateTime TimeZone issue on PUT method after migration from .net4.7 to .net6 #512
Comments
@MADzO Please check if your route is being detected as an OData route. Enable the route debugging middleware and navigate to |
@MADzO can you confirm which of those endpoints is the one you are targeting with the request? |
I wonder if this is somehow related to this: |
@MADzO Basically, i didn't fully understand your scenario. I created a sample at https://github.com/xuzhg/WebApiSample/tree/main/v8.x/TimeZoneSamples, can you make it failing or we can set up a meeting to sync it? |
@xuzhg just send me a teams meeting and I can explain in detail. In meanwhile what you can see from the pictures is that same request with same data received in the old net4.7 and in the new .net6 solutions, has different values for the properties of type DateTime in the odata controller. Just check the values in the watch on the second picture in the very bottom and you will see it. |
Sent in email |
First of all @xuzhg thanks for the help and flexibility. Really apricate it. |
@MADzO consider annotating your controller or assembly with the |
The whole explanation can be found here: https://stackoverflow.com/questions/71342051/odata-datetime-timezone-issue-on-put-method-after-migration-from-net4-7-to-net
The text was updated successfully, but these errors were encountered: