Merge pull request #16945 from woocommerce/fix/16932

Save order paid date as GMT+0
This commit is contained in:
Claudio Sanches 2017-09-26 15:46:31 -03:00 committed by GitHub
commit 0eee99a508
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class WC_Order extends WC_Abstract_Order {
*/ */
public function maybe_set_date_paid() { public function maybe_set_date_paid() {
if ( ! $this->get_date_paid( 'edit' ) && $this->has_status( apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this ) ) ) { if ( ! $this->get_date_paid( 'edit' ) && $this->has_status( apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this ) ) ) {
$this->set_date_paid( current_time( 'timestamp' ) ); $this->set_date_paid( current_time( 'timestamp', true ) );
} }
} }