-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Storing DateTime in local app settings causes exception #1959
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
Comments
Here is a repository that you can clone and you can reproduce the error: |
Figured out what went wrong. I created this PR to help improve the docs #1971 |
@dpaulino, thanks for the PR. DateTime is tricky because it shows up differently depending on the language you're programming in, so I also added a note that DateTimeOffset is for C# and .NET languages. |
* test test * Update toc.yml * Update toc.yml * Update benefits.md * test * Fixed a typo. * Update dwritecore.md * Update dwritecore.md * Create PhotoLabConversion.zip * first draft of cppwinrt case study (#1826) * first draft of cppwinrt case study * fixing suggestions * Update case-study-1.md * some edits to the case studies (#1840) * some edits to the case studies * couple more tweaks * adding alternative folder names (#1850) * move files into new folders (#1852) * updating TOC (#1853) * some review changes (#1854) * some refactoring (#1856) * some refactoring * more updates * just fixing TOC (#1857) * more refactoring (#1861) * more refactoring and new items (#1864) * adding more content (#1868) * Stwhi uwp migration/adding items 4 (#1871) * cppwinrt-only section * more items * more items/updates, and port -> migrate (#1874) * more items/updates, and port -> migrate * correcting build issues * correcting build issues 2 * correcting build issues 3 * correcting build issues 4 * last updates for the week (#1877) * more edits, additions, etc. (#1884) * more edits, additions, etc. * fixing url * more items (#1889) * UWP migration updates (aleader) (#1890) * A few fixups * Added some feature table mappings * More content * Merge * Update what-is-supported.md * another item (#1892) * another round of updates (#1893) * renaming Migration guide titles (#1894) * more items (#1895) * more items * fixing build suggestions * fixing build suggestion * more items (#1896) * last of the new items for the time being (#1900) * last of the new items for the time being * fixing build issues * experimenting with anchors * fixing build issue * Add * Create uwp-migration-msal-graph.md * Update feature-mapping-table.md * Minor UWP migration updates (#1904) * Updates to what is supported * Update what-is-supported.md * Update what-is-supported.md * Update api-mapping-table.md * Update overall-migration-strategy.md * Update case-study-1.md * Update * Update case-study-1.md * Update case-study-1.md * Update case-study-1.md * Update case-study-1.md * Acrylic brush item (#1919) * first half of copy-editing (#1924) * Update mrtcore.md * Update feature-mapping-table.md * Stwhi uwp migration/adding items 17 (#1927) * edit passes, improvements, etc. * build issues * copy-editing and rewriting (#1935) * Update feature-mapping-table.md * Adding warning for D2D support * Adding brief sentence for DWriteCore value prop * Update uwp-migration-msal-graph.md * Add and Edit Adding notifcations.md and changes to applifecycle.md * actioning feedback (#1952) * copy-editing (#1957) * copy-editing * assigning topics to myself * more updates as per email (#1959) * more entries to the API mapping table (#1964) * more entries to the API mapping table * build warnings * index (#1965) * Update case-study-1.md * Adding line for Win2D to feature mapping table * Add TaskbarManager to unsupported APIs * Fix absolute link * Update overall-migration-strategy.md * windowing guide (#1976) * windowing topic complete for now (#1978) * working around table rendering issues (#1979) * removed retry value. Added HTTP post example (#1980) * removed retry value. Added HTTP post example * fixed wording on retries * updating API mappings (#1982) * updating API mappings * fixing table * Delete uwp-migration-msal-graph.md Co-authored-by: Bhavya Gursahani <[email protected]> Co-authored-by: Mike Battista <[email protected]> Co-authored-by: Bhavya Gursahani <[email protected]> Co-authored-by: McLean Schofield <[email protected]> Co-authored-by: Andrew Leader <[email protected]> Co-authored-by: AdamBrMSFT <[email protected]> Co-authored-by: Duncan MacMichael <[email protected]> Co-authored-by: Nicu Parente <[email protected]>
According to this section, I should be able to store
DateTime
in the local app settings. However, when I try to run the following code, I get an exception.Am I doing something wrong? Is there an issue with the document? Or is there a bug in the platform?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: