MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Problems with Date and DateTime parsing
Open
Nobody has claimed this yet.
bug
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Hi every one.
Description
I was trying with:
window.chrome.webview.hostObjects.options.shouldSerializeDates = true;
Repro Steps
Add a simple hostobject, with 2 methods:

When I try:

In C#:

And finally:

All OK here. Date in JS is UTC
But when a I try this:

In C#, here is the problem, why the prop Kind is Unspecified?, this could be a problem when a I want to save date, in C# I would not know what time zone the date corresponds to.

And finally:

Version
SDK: 1.0.1587.40
Framework: WPF net6.0
OS: Windows 10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.