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.41k stars 2.66k forks source link

The date-time picker does not behave correctly when typing a date #14290

Open leddt opened 1 year ago

leddt commented 1 year ago

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

10.5.1

Bug summary

My timezone is UTC -4:00

If I type a date (without the time) in a Date Picker with time field, and tab away, the final value is offset by my timezone and ends up on the wrong date.

Specifics

This occurs whether or not the Offset time option is selected on the data type

Steps to reproduce

The final value is 2023-05-22 20:00:00.

datetime

Expected result / actual result

The final value should be 2023-05-23 00:00:00.

github-actions[bot] commented 1 year ago

Hi there @leddt!

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:

kjac commented 1 year ago

Hi @leddt,

Thank you for reporting this 👍

I can reproduce this being in GMT+1. Looks like the date/time pickers are due an overhaul.

I'm going to take this back to the team to find some consensus on the desired behaviour.