Skip to content

Date field not saving date correctly when popup calendar is used and date format is hiding the year #5373

@albanycomputers

Description

@albanycomputers

Description of the bug

Date field not saving year when display format is set to not show year but popup calendar shows year.

Steps To Reproduce

To reproduce the behavior:

  1. Create new Date & Time Format
    image

  2. Create new content type or edit an existing Date field to use the date format above and popup calendar

  3. Enter content with dates... for example 7th of September 2022 and save content

  4. Edit the content type and change the date format to "Long date" for example

Actual behavior

Year, while showing in the popup calendar isn't being saved properly.
image

Expected behavior

I would expect the date to be saved in a UNIX date format and the Date and Time format would display the date as you wish... allowing the correct date to be saved.

Additional information

Add any other information that could help, such as:

  • Backdrop CMS version: 1.20.1

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions