umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.37k stars 2.64k forks source link

Date picker has incorrect date when editing and date format is NOT YYYY-MM-DD #15462

Open russellshome opened 7 months ago

russellshome commented 7 months ago

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

10..8.2

Bug summary

When datepicker is configured to display the date in a format such as DD/MM/YYYY or MM/DD/YYYY (i.e. not YYYY-MM-DD) then when editing the date, the date shown in the calendar is not the date shown above.

Specifics

DatePickerIssue

Steps to reproduce

Create a new Data Type using the Date Picker editor Set the date format to DD/MM/YYYY Create a Document Type that has a property with the Data Type that was created Add Content with that Document Type Set the value of the date to 15/12/2023 Save & publish content Reload the page Click the calendar icon

Expected result / actual result

Expected Outcome:

Actual Outcome/Issue

github-actions[bot] commented 7 months ago

Hi there @russellshome!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

Zeegaan commented 7 months ago

Sounds like this is a duplicate of https://github.com/umbraco/Umbraco-CMS/issues/13403, can you confirm this? 🙈

russellshome commented 7 months ago

It seems to be a closely related issue. That issue indicates an incorrect initial date whereas the issue I have is that the initial date is correct but the date when editing is not.