Date Field with Flatdate Picker Widget Changing Date Value on Edit

Created on 5 September 2023, over 1 year ago
Updated 4 August 2024, 5 months ago

Problem/Motivation

I encountered an issue where the date value changes when using the Flatdate Picker widget on the edit page, but it displays correctly when view node.

Steps to reproduce

1. Select any content type.
2. Add a new field with the data type Date.
3. On the manage form display, change the widget to Flatdate Picker and add a custom format m-d-Y.
4. Go to Content > Add content and choose your content type. Add a random date to it.
5. Now, view the node, and the date will display correctly as the date you input.
6. However, when you click the "Edit" button and then view the date again, it has been automatically changed.

Proposed resolution

The date value should remain the same when editing and viewing the date, as entered by the user.

๐Ÿ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024