Skip to content

Conversation

TanayParikh
Copy link
Contributor

@TanayParikh TanayParikh commented Aug 20, 2021

Fixes: #35525
API Proposal Fixes: #35567

@TanayParikh TanayParikh requested a review from a team as a code owner August 20, 2021 20:33
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Aug 20, 2021
@@ -10,7 +12,6 @@
<p>
Links:
<a href="WithQueryParameters/@FirstName?intvalue=123">With IntValue</a> |
<a href="WithQueryParameters/@FirstName?intvalue=123&NullableDateTimeValue=@(new DateTime(2000, 1, 2, 3, 4, 5, 6).ToString("u"))">With NullableDateTimeValue</a> |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't being utilized anywhere.

Copy link
Member

@MackinnonBuck MackinnonBuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me!

Copy link
Contributor Author

@TanayParikh TanayParikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting this to auto-merge now, please let me know if there are any concerns.

Comment on lines 30 to 31
"dateonly" => typeof(DateOnly),
"timeonly" => typeof(TimeOnly),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this, will be done in #34591

Comment on lines 811 to 808
SetUrlViaPushState($"/WithQueryParameters/Abc?&NullableDateTimeValue={dateTime.ToString("u")}&NullableDateOnlyValue={dateOnly.ToString("u")}&NullableTimeOnlyValue={timeOnly.ToString("u")}");
SetUrlViaPushState($"/WithQueryParameters/Abc?NullableDateTimeValue=2000-01-02%2003:04:05&NullableDateOnlyValue=2000-01-02&NullableTimeOnlyValue=03:04:05");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constructing URL via interpolation was causing issues (due to localization / date cultures). Testing with a hard-coded string for now.

@TanayParikh TanayParikh enabled auto-merge (squash) August 23, 2021 20:40
@TanayParikh
Copy link
Contributor Author

/backport to release/6.0-rc1

@github-actions
Copy link
Contributor

Started backporting to release/6.0-rc1: https://github.com/dotnet/aspnetcore/actions/runs/1160172691

@TanayParikh TanayParikh merged commit 8dd8359 into main Aug 24, 2021
@TanayParikh TanayParikh deleted the taparik/supportDateOnlyTimeOnlyQueryString branch August 24, 2021 00:33
@ghost ghost added this to the 7.0-preview1 milestone Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

{Date, Time}Only Querystring building APIs for Blazor Support DateOnly and TimeOnly as parsing options for [SupplyParameterFromQuery]
3 participants