Active
Project:
Clientside Validation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2013 at 14:39 UTC
Updated:
13 Mar 2013 at 17:42 UTC
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 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'