Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Validation messages for date fields have dates in format YYYY-MM-DD.
Would be good to pass these dates through date format function to allow them to be properly formatted.
I have attached a patch with a posible solution
Comment | File | Size | Author |
---|---|---|---|
clientside_validation_webform_date_format.patch | 4.12 KB | tatyana | |
Comments
Comment #1
attiks CreditAttribution: attiks commentedI think it's better to handle this in _clientside_validation_set_minmax_date. We need the change the calling code, so it no longer passes a message so it gets constructed inside this function.
As far as I can see, we don't need the date module to do this, drupal has a format_date function. And maybe we could even get the address from the field/component, so we can use that as format instead of 'short'