-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Scheduling displays "Invalid date" in Umbraco 12.3.1 #15202
Comments
Hi there @matteus-hemstrom-nltg! 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 🤖 🙂 |
What version did you update from? That could make it easier to find the root cause? |
We think that it was working on 12.2.0. |
The issue also occurs on version 13.0.0-rc2 |
Facing the same issue on Umbraco Cloud with 12.3.1. |
Just looking at that PR, it seems like |
@matteus-hemstrom-nltg no, I don't think that is correct. Before it didn't sent in format to this. which used the format I think the issue it that where |
I don't think at least the format before was I think |
Hey @bjarnef And I'll close this issue. |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
12.3.1
Bug summary
When upgrading to Umbraco 12.3.0 we found that the scheduling function stopped working. We have since then upgraded to 12.3.1 hoping that it would resolve our issue as it is addressed in the release note "Scheduling Posts gives invalid date in Umbraco 12.3". Unfortunately, we still have an issue with the scheduling modal. The date picker still show "invalid date" in the scheduling modal.
Specifics
Note that this seems to be a frontend issue only, because if one proceed to schedule the document with "invalid date", the document will still be scheduled and published according to the date and time that was selected.
I have tracked the issue down to the following code:
formatDatesToLocal
in schedule.controller.js, see https://github.com/umbraco/Umbraco-CMS/blob/v12/dev/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.controller.js#L279-L286getLocalDate
andconvertToLocalMomentTime
in util.service.js, see https://github.com/umbraco/Umbraco-CMS/blob/v12/dev/src/Umbraco.Web.UI.Client/src/common/services/util.service.js#L78-L117The date returned from
convertToLocalMomentTime
is not valid (e.g.'Nov 14th 2023, 13:08-00:00'
).I have also found it works if I modify
Umbraco.Sys.ServerVariables.application.serverTimeOffset
so thatserverTimeNeedsOffsetting
is evaluated tofalse
. However, I'm not sure if that will cause timezone issues when publishing. This means that you need to have a different server time zone than your browser to reproduce the issue. The issue is therefore likely not reproducible locally because the server and browser will use the same time zone.Steps to reproduce
I think you diff in server timezone and browser timezone to trigger the issue, then:
Expected result / actual result
The selected dates should be visible in the scheduling modal.
The text was updated successfully, but these errors were encountered: