Created
May 29, 2018 09:18
-
-
Save hxii/399e660a578fa4f66df6e2fa353e648f to your computer and use it in GitHub Desktop.
Yotpo WooCommerce Date Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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