I am trying to get the order time, I fixed the problem with orders with wrong time stamp in admin panel. Now I am trying to get the order date in my module.
The problem is
$created = $order->getCreatedAt()
returns the UTC time and not local time. I tried to use
$created = $order->getCreatedAtStoreDate();
But this one returns nothing. How should I get the orders date?
dateFormat
item?