Skip to content

Datetime filter shows inconsistent values when not in UTC #75511

@jimjasson

Description

@jimjasson

Description

When using a filter on a datetime field, it automatically converts the selection to UTC:

Image

This was initially fixed by this PR: #72756 (proof) but was re-introduced at a later point

Step-by-step reproduction instructions

  1. Ensure that you are not in UTC.
  2. Go to the datetime field example in the Storybook.
  3. Click to add a filter.
  4. Select a date and time.
  5. Notice that when you close the filter, your selection is displayed in UTC.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Labels

[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions