Skip to content
Snippets Groups Projects

Issue #2723159 : Datetime form element cannot validate when using a format without seconds

Open Issue #2723159 : Datetime form element cannot validate when using a format without seconds
4 unresolved threads
Open Bhanu D requested to merge issue/drupal-2723159:2723159-datetime-form-element into 11.x
4 unresolved threads

Closes #2723159

Merge request reports

Members who can merge are allowed to add commits.
Code Quality is loading
Test summary results are being parsed
Checking if merge request can be merged…
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
67
68 $form['actions'] = [
69 '#type' => 'actions',
70 'submit' => [
71 '#type' => 'submit',
72 '#value' => $this->t('Submit'),
73 ],
74 ];
75
76 return $form;
77 }
78
79 /**
80 * {@inheritdoc}
81 */
82 public function submitForm(array &$form, FormStateInterface $form_state) {
  • 10 /**
    11 * Datetime time sub-element test form.
    12 */
    13 class FormTestDatetimeTimeTest extends FormBase {
    14
    15 /**
    16 * {@inheritdoc}
    17 */
    18 public function getFormId() {
    19 return 'form_test_datetime_time';
    20 }
    21
    22 /**
    23 * {@inheritdoc}
    24 */
    25 public function buildForm(array $form, FormStateInterface $form_state) {
  • 3 declare(strict_types=1);
    4
    5 namespace Drupal\form_test\Form;
    6
    7 use Drupal\Core\Form\FormBase;
    8 use Drupal\Core\Form\FormStateInterface;
    9
    10 /**
    11 * Datetime time sub-element test form.
    12 */
    13 class FormTestDatetimeTimeTest extends FormBase {
    14
    15 /**
    16 * {@inheritdoc}
    17 */
    18 public function getFormId() {
  • 34463 34463 'count' => 1,
    34464 34464 'path' => __DIR__ . '/modules/system/tests/modules/form_test/src/Form/FormTestColorForm.php',
    34465 34465 ];
    34466 $ignoreErrors[] = [
    Please register or sign in to reply
    Loading