Closed vzani closed 9 years ago
I have exactly the same problem and i have debugged and seen that 'type' not sended via ajax request to convert action
The problem was in version 1.9.1 inside the datecontrol.js at 38 line. (self.reqType)
The latest stable version is v1.9.3.
Report issues on the latest release.
I´ve been learning Yii2 framework the past 2 weeks. I´m doing some tests to update and retrieve datetime fields.
I create a Mysql Table "order" with 'created_date' field as "DATETIME".
I configured the \kartik\datecontrol\Module this way:
My update view:
My test, putting the current Sao Paulo timezone date and time
Please check image: http://i.stack.imgur.com/jBv0I.png
After updating, I check the DB. The expected result (on my understanding) would be:
2015-06-04 17:00:00 (The UTC date time for given input)
But it´s not working. It´s saving as:
2015-06-05 06:00:00
And on view it´s being displayed as:
Please check image: http://i.stack.imgur.com/gGRJH.png
Any help?
Thanks