You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Timepicker time resets when using AM/PM toggle #29720
Setting 11am then pressing PM would change it to 11PM
Actual behaviour
The time is briefly set to 11PM but changes back to 11AM by itself after a brief moment.
Of note, the underlying date/time value does get changed correctly, and can be seen if the value is used in an unrelated component. However, when it is reset in the timepicker component, all other components using this value change too, so it isn't purely local state of the timepicker component that's being reset.
WordPress information
WordPress version: 5.6.1, 5.7
Gutenberg version: stock WP and GB 10
Are all plugins except Gutenberg deactivated? yes
Are you using a default theme (e.g. Twenty Twenty-One)? No
Activity
tomjn commentedon Mar 10, 2021
Some notes from a brief look that I left in the other issue:
bmehta commentedon Nov 17, 2021
We are seeing the exact same behavior as shown in the giphy above. It is also reproducible at https://wordpress.github.io/gutenberg/?path=/story/components-datetimepicker--default after navigating to
Knobsat the bottom and checkingIs 12 hour (shows AM/PM).ciampo commentedon Nov 25, 2021
Opened #36878 with a potential fix