| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | $months = array(); |
| 25 | 25 | $this_month = ( new DateTimeImmutable( 'now', wp_timezone() ) )->modify( 'first day of this month' )->setTime( 0, 0 ); |
| 26 | 26 | for ( $i = 0; $i < 12; $i++ ) { |
| 27 | 27 | $month = strtotime( "-$i month" ); |
| 28 | - $months[ gmdate( 'Y-m', $month ) ] = wp_date( 'F Y', $month, new \DateTimeZone( 'UTC' ) ); | |
| 28 | + $months[ gmdate( 'Y-m', $month ) ] = gmdate( 'F Y', $month ); | |
| 29 | 29 | } |
| 30 | 30 | ?> |
| 31 | 31 | <div class="wp-subscription-admin-content list-page"> |
| 32 | 32 | |
| @@ -262,9 +262,9 @@ | ||
| 262 | 262 | $customer_url = $customer_id ? admin_url( 'user-edit.php?user_id=' . $customer_id ) : ''; |
| 263 | 263 | $customer_email = $order ? $order->get_billing_email() : ''; |
| 264 | 264 | |
| 265 | 265 | $start_date = $subscription_data['start_date'] ? strtotime( $subscription_data['start_date'] ) : 0; |
| 266 | - $renewal_date = $subscription_data['next_date'] && SpringDevs\Subscription\Illuminate\Helper::has_next_payment( $subscrpt_status ) ? strtotime( $subscription_data['next_date'] ) : 0; | |
| 266 | + $renewal_date = $subscription_data['next_date'] ? strtotime( $subscription_data['next_date'] ) : 0; | |
| 267 | 267 | |
| 268 | 268 | $is_trash = 'trash' === $subscription->post_status; |
| 269 | 269 | $is_grace_period = isset( $subscription_data['grace_period'] ); |
| 270 | 270 | $grace_remaining = $subscription_data['grace_period']['remaining_days'] ?? 0; |