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

CommentFileSizeAuthor
#4 3035503-4.patch899 bytesmegha_kundar
#2 3035503-2.patch865 bytesmegha_kundar

Comments

szeidler created an issue. See original summary.

megha_kundar’s picture

Status: Active » Needs review
StatusFileSize
new865 bytes
szeidler’s picture

Status: Needs review » Needs work

Oh, d/m/Y is a format, that will not be processed correctly with strotime() and so cannot be used for input here, without changing the submit logic.

megha_kundar’s picture

Status: Needs work » Needs review
StatusFileSize
new899 bytes

  • saesa committed 97a6635 on 7.x-1.x
    Issue #3035503 by Megha_kundar: Form date format mismatches the...
saesa’s picture

Status: Needs review » Fixed

Thanks for the collaboration.

saesa’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.