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

Refactor <DateFilter> #2960

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Refactor <DateFilter> #2960

merged 1 commit into from
Sep 11, 2024

Conversation

balanza
Copy link
Member

@balanza balanza commented Sep 10, 2024

Description

Being it uses the browser native <input type="datetime-local"> HTML element, the component needs to convert dates in the local timezone from/to UTC.
This PR uses formatting instead of timezone offset, so the conversion is idempotent if applied multiple times.

This avoid the need to control balance the number of conversion from and to the target timezone (as it's the case in a controlled component scenario)

Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

LGTM 👀

@balanza balanza merged commit cc23a07 into main Sep 11, 2024
30 checks passed
@balanza balanza deleted the fix-date-filter branch September 11, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants