Skip to content

Instantly share code, notes, and snippets.

@hxii
Created May 29, 2018 09:18
Show Gist options
  • Save hxii/399e660a578fa4f66df6e2fa353e648f to your computer and use it in GitHub Desktop.
Save hxii/399e660a578fa4f66df6e2fa353e648f to your computer and use it in GitHub Desktop.
Yotpo WooCommerce Date Fix
// Use
$data['order_date'] = date('Y-m-d H:i:s', strtotime($order->get_date_created()));
// instead of
$data['order_date'] = $order->get_date_created();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment