Jump to content

Edit History

mainingm

mainingm

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
);

 

mainingm

mainingm

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,
);

 

×
×
  • Create New...