unclead / yii2-multiple-input

Yii2 widget for handle multiple inputs for an attribute of model
https://unclead.github.io/yii2-multiple-input/
BSD 3-Clause "New" or "Revised" License
393 stars 127 forks source link

DateTimePicker #377

Closed cardinalemarcoilvbc closed 1 year ago

cardinalemarcoilvbc commented 1 year ago

Good morning, first of all thank you for the project, it is helping me a lot. However, I have a problem if I try to use the kartik\date\DatePicker and enter not only the date but also the time doesn't work. Using it like this

[name' => 'check_in',
title' => 'Check In',
'type' =>kartik\date\DatePicker::class,
options' =>[
'pluginOptions' => [
        autoclose' => true,
          'format' => 'dd-M-yyyy hh:ii',
         ],
]     ,
        ],

after selecting the date it puts me hh:ii moreover it does not allow me at the selection stage to choose any time at all even going to use the DateTimePicker gives me an error on unsupported column Invalid Configuration - yii\base\InvalidConfigException Invalid column type 'kartik\date\DateTimePicker'.

cardinalemarcoilvbc commented 1 year ago

use ['name'=>'check_in', 'title' => 'Check In', 'type' =>kartik\datetime\DateTimePicker::class, 'options'=>[ 'pluginOptions' => [ 'autoclose' => true, 'format' => 'dd/mm/yyyy h:i',

     ],

] ,

    ]