Problem/Motivation
The form field for the start date and end date expects the date format d-m-Y. But the description uses the d/m/Y format.
$form['start_date'] = array(
'#type' => 'textfield',
'#title' => t('Start date'),
'#default_value' => date('d-m-Y', $start_date),
'#description' => t('Ex: @date', array("@date" => date('d/m/Y', $start_date))),
'#size' => 10,
);
Proposed resolution
This should be made consistent in either or the other way.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3035503-4.patch | 899 bytes | megha_kundar |
| #2 | 3035503-2.patch | 865 bytes | megha_kundar |
Comments
Comment #2
megha_kundar commentedComment #3
szeidler commentedOh,
d/m/Yis a format, that will not be processed correctly with strotime() and so cannot be used for input here, without changing the submit logic.Comment #4
megha_kundar commentedComment #6
saesa commentedThanks for the collaboration.
Comment #7
saesa commented