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

Date pickers select unexpected initial date #13403

Open
RutgerDijk opened this issue Nov 15, 2022 · 2 comments
Open

Date pickers select unexpected initial date #13403

RutgerDijk opened this issue Nov 15, 2022 · 2 comments

Comments

@RutgerDijk
Copy link

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.3.0

Bug summary

When upgrading to Umbraco 10.3.0 (or higher) and adding a date picker to a document type the date picker is expected to select the current date. Instead it selects the 1st of last day of the month or even the 1st of january.

Specifics

No response

Steps to reproduce

  • Create an Umbraco project
  • Set a Date Picker (any) on DocType (LLL or MM-DD-YYYY)
  • Create a new page from DocType
  • Select a date for the first time
  • Select a new date and check if the calendar view starts at the 1st of the month.
    screenshot_datepicker

Expected result / actual result

  • Expected to see the selection on the current date when opening calendar view
  • Actual result is 1st of last day of the month as initial selected date and sometimes even the 1st of january
@Zeegaan
Copy link
Member

Zeegaan commented Nov 21, 2022

Interesting thing here is the configuration like you mentioned 🎉
With default configuration YYYY-MM-DD it works just fine, but as soon as that is changed, it doesn't 🤔
I suspect it has something to do with how we return the values, as even though they are configured differently, the value for the editors are formatted the same 🕵️‍♂️
image

@github-actions
Copy link

Hi @RutgerDijk,

We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know.

For more information about issues and states, have a look at this blog post.

Thanks muchly, from your friendly Umbraco GitHub bot :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants