Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Panel] - Bug with date field when included in a structure field #6282

Open
vauvarin opened this issue Feb 20, 2024 · 1 comment
Open

[Panel] - Bug with date field when included in a structure field #6282

vauvarin opened this issue Feb 20, 2024 · 1 comment
Labels
type: bug 🐛 Is a bug; fixes a bug

Comments

@vauvarin
Copy link

vauvarin commented Feb 20, 2024

Description

I found a bug with the date field when it’s included in a structure field.
If I choose a date in the calendar, the right date is displayed in the date field but when I click on the “tick” icon to close the sliding sidebar of the structure field then the date value is changed.

Looks like it only happens when the display format is set.

Expected behavior
We keep the same date value after clicking on the "tick" icon to close the sliding sidebar of the structure field.

Screenshots
I did two screencasts to illustrate:
https://github.com/getkirby/kirby/assets/664089/beb95c5c-1ef8-4f97-a4c5-c820c9a1f806
https://github.com/getkirby/kirby/assets/664089/55157b3c-58c4-4de3-9c6b-1adf8cbb7086

To reproduce

f_primary_approval:
            label: Primary approval
            type: structure
            fields:
              f_s_title:
                label: Title
                type: text
              f_s_files:
                label: Egnyte files
                type: structure
                fields:
                  f_s_s_last_update_date:
                    label: Last update
                    type: date
                    display: MM/DD/YYYY
                    help: Click on the calendar icon

Your setup

Kirby Version
4.1.0

PHP Version
8.3.3

Your system (please complete the following information)

  • Device: PC
  • OS: Linux
  • Browser: Firefox
@distantnative
Copy link
Member

Also getting weird dates when removing one nesting level with just

f_s_files:
  label: Egnyte files
  type: structure
  fields:
    f_s_s_last_update_date:
      label: Last update
      type: date
      display: MM/DD/YYYY
      help: Click on the calendar icon

@distantnative distantnative added the type: bug 🐛 Is a bug; fixes a bug label Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants