I am creating order programmatically on magento 2.2 and using this
$order = $this->orderRepository->get($order_id);
$order->setCreatedAt($orderData['created_at']);
$order->save();
where $this->orderRepository
referes to
\Magento\Sales\Api\OrderRepositoryInterface $orderRepository
The created_date comes from an excel and has the
date (2019-01-11 18:43:08)
, but created_at coloumn under sales_order it is saved as 2019-01-12 00:13:07 .
. Here are the timezone settings that i have in backend
I need to have the same dates in order that i have in csv and and same need to be reflected on other places like order grid. Please advice