-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The datetime DataViews field displays dates and times inconsistently, when the user is not in UTC:
In the above screenshot, the user is in UTC +2. They select 30/10/2025 at midnight, but 29/10/2025 at 22.00 is saved as the value, because the filter value is automatically converted to UTC. The user should see a consistent date and time in the modal and in the saved filter value, so the modal's date/time selectors should also be in UTC.
Step-by-step reproduction instructions
- Go to the Storybook.
- Navigate to DataViews > FieldTypes > datetime.
- Ensure that you are not in UTC.
- Click to add a filter for the datetime field.
- Select a date and time.
- Notice that the saved filter value is different to the one you selected.
Screenshots, screen recording, code snippet
No response
Environment info
No installation -- can be replicated on Storybook.
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
Assignees
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended