Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimePicker #377

Closed
cardinalemarcoilvbc opened this issue Jun 13, 2023 · 1 comment
Closed

DateTimePicker #377

cardinalemarcoilvbc opened this issue Jun 13, 2023 · 1 comment

Comments

@cardinalemarcoilvbc
Copy link

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
Copy link
Author

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

     ],

] ,

    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant