DateTimeOffset -> conversion from UTC to local machine time zone #4838
Labels
Csharp
Pull requests that update .net code
Status: No Recent Activity
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:bug
A broken experience
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
C#/.NET
Describe the bug
Latest version of Kiota. I am trying to use an Kiota client for an API endpoint that returns MinValue of DateTimeOffset and because my timezone is UTC+1 the deserialization fails because MinValue - 1 hour is not a valid value.
The API endpoint actually has an option of returning null, but it insists on returning MinValue. I have reached out to the API author in hopes of changing their implementation of this edge case.
My workaround for now is to change the property from DateTimeOffset? to string.
Is there another way to fix this situation without changing the API or the generated code?
Expected behavior
The code does not break
How to reproduce
Open API description file
No response
Kiota Version
1.15.0
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
As described above
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: