Closed Wofik29 closed 5 years ago
master
\kartik\datecontrol\DateControl::widget([ 'name' => 'from', 'value' => date('Y-m-d'), 'type' => \kartik\datecontrol\DateControl::FORMAT_DATE, 'displayFormat' => 'php:d M', 'saveFormat' => 'php:Y-m-d', ]);
I want see only day and month and save simple format
Next, I see on page and in debug tools all fine.
Chage date
When I follow those steps, I see 1970 year I was expecting that year not be changed.
I see date format http://php.net/manual/en/datetime.formats.date.php Format "d M", for example "17 Apr", should be parse.
I do something wrong?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Prerequisites
master
branch of yii2-datecontrol.Steps to reproduce the issue
I want see only day and month and save simple format
Next, I see on page and in debug tools all fine.
Chage date
Expected behavior and actual behavior
When I follow those steps, I see 1970 year I was expecting that year not be changed.
I see date format http://php.net/manual/en/datetime.formats.date.php Format "d M", for example "17 Apr", should be parse.
I do something wrong?
Environment
Browsers
Operating System
Libraries
Isolating the problem