MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Problems with Date and DateTime parsing

Open
#3,242 2 comments 0 reactions 1 assignee View on GitHub

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:

image

When I try:

image

In C#:

image

And finally:

image

All OK here. Date in JS is UTC

But when a I try this:

image

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.

image

And finally:

image

Version
SDK: 1.0.1587.40
Framework: WPF net6.0
OS: Windows 10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.