Jump to content

validateOrder function and wrong date of the order


Recommended Posts

Hello, I am using third party payment module where classic validateOrder function create a new order in the database. But date_add column in [PREFIX]_orders table contain timestamp hour less than time when order were made. There is 1 hour time shift. Is here anyone experienced with same issue? How should I fix it?

The code in controller looks like this

$cart = $this->context->cart;
$customer = new Customer((int)$cart->id_customer);
$this->module->validateOrder(
            (int)$cart->id, 
            '15', 
            (float)$cart->getOrderTotal(true, Cart::BOTH), 
            'Card Payment', 
            'Waiting for payment', 
            array(), 
            $this->context->currency->id, 
            false, 
            $customer->secure_key
);

 

Edited by mainingm (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...