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

MudDateRangePicker: Ignore timestamp when setting day classes #8342

Merged
merged 2 commits into from Mar 12, 2024

Conversation

Anu6is
Copy link
Contributor

@Anu6is Anu6is commented Mar 12, 2024

Description

When setting the CSS classes for the selected dates in the date range picker, ignore any timestamps included in the start and end dates for the DateRange.

Resolves #8339.
Also, while not mentioned in the issue, the error meant that the start date was not included in the selected date range.

How Has This Been Tested?

Tested using unit tests and unit test viewer.
Added new test cases and test viewer components.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added bug Something does not work as intended/expected PR: needs review labels Mar 12, 2024
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.69%. Comparing base (0824b21) to head (915f0e2).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8342      +/-   ##
==========================================
+ Coverage   88.62%   88.69%   +0.06%     
==========================================
  Files         407      407              
  Lines       12175    12176       +1     
  Branches     2429     2430       +1     
==========================================
+ Hits        10790    10799       +9     
+ Misses        855      853       -2     
+ Partials      530      524       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ScarletKuro ScarletKuro requested a review from henon March 12, 2024 17:02
@henon henon merged commit 3eee937 into MudBlazor:dev Mar 12, 2024
3 checks passed
@henon
Copy link
Collaborator

henon commented Mar 12, 2024

Thanks @Anu6is

danielchalmers pushed a commit to danielchalmers/MudBlazor that referenced this pull request Mar 13, 2024
…zor#8342)

* MudDateRangePicker: Ignore timestamp when definig selected date range classes

* make null check more readable
danielchalmers pushed a commit to danielchalmers/MudBlazor that referenced this pull request Mar 13, 2024
…zor#8342)

* MudDateRangePicker: Ignore timestamp when definig selected date range classes

* make null check more readable
@ScarletKuro
Copy link
Member

#8463 (comment)

@Anu6is Anu6is deleted the Fix-DateRangePicker-Timestamp-Display branch April 12, 2024 12:39
biegehydra pushed a commit to biegehydra/MudBlazor that referenced this pull request Apr 26, 2024
…zor#8342)

* MudDateRangePicker: Ignore timestamp when definig selected date range classes

* make null check more readable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DateRangePicker: Display is not correct when time is not 00:00:00
3 participants