We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently for DateTimeOffset, SimpleJson has:
DateTimeOffset
DateTimeOffset.ParseExact(str, Iso8601Format, CultureInfo.InvariantCulture, ...
But the Iso8601Format value doesn't allow for timezone offsets, so it can't ParseExact.
Iso8601Format
ParseExact
We should amend SimpleJson for DateTimeOffset in the same way we did for DateTime to make it more flexible about incoming formats.
DateTime
The text was updated successfully, but these errors were encountered:
@JamesNK What if we had a dev who was really good at JSON parsing and wanted to make the web a better place . . . 😃
Sorry, something went wrong.
I'm pretty sure @JamesNK has already solved this problem quite thoroughly!
What's a JSON?
dotnet/blazor@8a60ccc
In JsonUtil, support DateTimeOffset. Fixes #218.
4202a6c
SteveSandersonMS
No branches or pull requests
Currently for
DateTimeOffset
, SimpleJson has:But the
Iso8601Format
value doesn't allow for timezone offsets, so it can'tParseExact
.We should amend SimpleJson for
DateTimeOffset
in the same way we did forDateTime
to make it more flexible about incoming formats.The text was updated successfully, but these errors were encountered: