-
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
The date picker is empty after save/publish for users with locales not matching the angular locale files #6132
Comments
To make it better, this doesn't work on vanilla Azure Apps, so I'll update when I find a fix that works "all over". |
Is this definitely being triggered by the user's locale? It looks similar to #6102, which is triggered by the date picker's format being set to something other than YYYY-MM-DD HH:mm. |
Hey @lars-erik ! I think it might be time for an upgrade. I can't reproduce in 7.15.2 (coming up on Tuesday). And in fact that language file is there: We updated a lot in 7.15 so I think the Norwegian language might have gotten included there (if that is even the reason). |
@nul800sebastiaan As mentioned in the OP, the I'm not sure whether I can squeeze in any time to debug more ASAP, but the component definitely need some thorough QA before any patch. @stevemegson We didn't modify the default format, so at best this is supplemental or related rather than duplicate. |
Bah. Looks like you're right. We do have another format. I was positive that had to be some default setting, but I'm sure we have tampered with it. Crossing fingers for 15.2, then. |
Although it doesn't work with default format either on 7.15.1. It goes blank on save/publish, even with the nb-NO.js file loaded. (Something tells me that actually doesn't have to do with anything) |
Can currently reproduce on 7.15.1 on Azure WebApps, but can't reproduce locally (iisexpress). (!) |
It does sound like a time zone issue rather than a format issue. Can you see what value the server is returning in |
I just discovered the place in the property editor controller where it fails. Took a while, but the time is separated with dot instead of colon which is expected by my current locale.
|
There we go! |
Tuesday's release was closed yesterday. 😊 |
Fixed in #6138 |
The date picker is empty after save/publish for users with locales not matching the angular locale files. (Probably affects more than the date picker)
Reproduction
(done with Umbraco 7.13.1)
Create a data type using the property editor Umbraco.DateTime.
Keep the default format DD.MM.YYYY HH:mm (dunno if it affects anything)
Keep offset on (dunno if it affects anything)
Use the data type for a property
Create a user with Norwegian locale
Log into the backoffice
Create doc. with the date picker
Select a date
Save & Publish
The date should now be blank, although stored. (save / publish now clears the date)
The date is back if the backoffice and/or content is reloaded.
Bug summary
The Norwegian user locale is nb-NO. The angular-locale_nb-NO.js file is attempted loaded, but does not exist, since only angular-locale_no.js is bundled with angular 1.1.5.
This leads to the behavior described above.
Expected result
Correct locale file loaded and dates shown after save/publish.
Actual result
No locale file loaded and date blank after save/publish.
Workaround
I work around it for now by copying the file on build:
Suggested fix
Copy the file manually in Umbraco.Web.UI.Client since angular 1.1.5 won't be upgraded nor probably ever contain the file angular-locale_nb-NO.js. :)
The text was updated successfully, but these errors were encountered: