Problem/Motivation
Localization is a big issue for non English speaking - and having proper date format is to. But changing the default date format seems to kill the possibility to save a node. Since the date is validated in the Authored on view in the sidebar.
How to reproduce
- Change admin language to a non English language (eg. Danish)
- Change the default date format eg. to display day before month.
- Create a new Basic page and save
- Now it is reported that the date isn't filled out
Work around
I found two ways to work around it is first to disable the Authored on in the Manage form display. Second to change the admin language back to English.
Comment | File | Size | Author |
---|---|---|---|
#2 | Screen Shot 2015-08-17 at 12.56.51.png | 38 KB | jonasdk |
Comments
Comment #2
jonasdk CreditAttribution: jonasdk commentedComment #3
jonasdk CreditAttribution: jonasdk as a volunteer commentedComment #4
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedI managed to reproduce this on HEAD.
It seems to be caused by the HTML5 input="date" not allowing the custom format to be entered into the date field. This is not only the cause for the authored on field, but for all datetime fields.
An alternative (yet very dirty) way to work around the issue, is by removing the type attribute of the input field using developer tools.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedComment #16
quietone CreditAttribution: quietone at PreviousNext commented@jonasdk, Thank you for reporting this problem. We rely on issue reports like this to improve Drupal core.
I tested this on 9.5.x and was not able to reproduce this error. I followed the steps given in the Issue Summary.
Therefore, closing as outdates.
If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").
Thanks!