In Magento2 : When I saved date attribute with time is the same picture below. After I saved it only save date and get no time.
Any know reason and how to fix it?
In database: after saved
When I changed format from \Magento\Framework\Stdlib\DateTime\Filter\Date to \Magento\Framework\Stdlib\DateTime\Filter\DateTime and then I got:
Recoverable Error: Argument 7 passed to Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper::__construct() must be an instance of Magento\Framework\Stdlib\DateTime\Filter\DateTime, none given, called in
D:\xampp\htdocs\magento\var\generation\Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\Interceptor.php on line 15 and defined in <br>
D:\xampp\htdocs\magento\vendor\magento\module-catalog\Con`troller\Adminhtml\Product\Initialization\Helper.php on line 57