proudmonkey / AutoWrapper

A simple, yet customizable global exception handler and Http response wrapper for ASP.NET Core APIs.
MIT License
679 stars 82 forks source link

Problem with DateTimeOffset responses #124

Open payambordbar opened 2 years ago

payambordbar commented 2 years ago

Every Time the response contains a DateTimeOffset with any offset, AutoWrapper Change it to local DateTimeOffset.

You are using Jtoken.Parse from Newtonsoft.Json to parse the response and the problem came from there.

zoinkydoink commented 2 years ago

I just found out we have this same exact using AutoWrapper, we need a fix to this please otherwise we have to revert all of our code not to use the wrapper