Skip to content
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

MobileFormatter should serialize DateTimeOffset #2523

Open
rockfordlhotka opened this issue Oct 12, 2021 · 2 comments
Open

MobileFormatter should serialize DateTimeOffset #2523

rockfordlhotka opened this issue Oct 12, 2021 · 2 comments

Comments

@rockfordlhotka
Copy link
Member

See #2522 for discussion.

The DateTimeOffset type is not normally serializable. MobileFormatter should be enhanced to serialize DateTimeOffset.

Also, the analyzer that checks for serializable types should be enhanced to understand that this type can now be serialized.

@swegele
Copy link
Contributor

swegele commented Mar 21, 2022

When whoever gets to coding this...they should probably .ToString the DateTimeOffset in the "O" round-trip format as talked about here, to preserve all original information contained therein.

https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings#the-round-trip-o-o-format-specifier

@rockfordlhotka
Copy link
Member Author

Maybe can be resolved once #2531 is complete?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants