PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.4.1
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.4.1
2.4.1 2.4.0 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 All 68 releases
← All changes | includes/WooCommerce/OrderHandler.php +2 -1 2.4.0 → 2.4.1 View file →
@@ -159,9 +159,10 @@
159 159
160 160 return array(
161 161 'amount' => (float) $data['amount'],
162 162 'order_id' => (string) $data['bp_order_id'],
163 - 'payment_date' => current_time( 'mysql' ),
163 + // UTC, like every other writer of this table (see Classes\PaymentDateMigration).
164 + 'payment_date' => gmdate( 'Y-m-d H:i:s' ),
164 165 'source' => 'stripe',
165 166 'transaction_id' => ! empty( $session->payment_intent ) ? sanitize_text_field( $session->payment_intent ) : '',
166 167 'customer_info' => maybe_serialize( $session ),
167 168 'form_fields_info' => maybe_serialize( $form_fields_info ),