From 0e1a8f75e76b2622f48a15110abe894e6c4cc0a3 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 30 Sep 2019 13:32:25 -0400 Subject: [PATCH] Fix for renewal date. Don't substract from year. --- classes/billingSupport.php | 4 ---- index.php | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/classes/billingSupport.php b/classes/billingSupport.php index edf56df..a36446e 100644 --- a/classes/billingSupport.php +++ b/classes/billingSupport.php @@ -1556,10 +1556,6 @@ class GlmBillingSupport // Adjust the year to current year $new_renewal_date = date( 'Y' ) . $the_rest; $test_renewal_date = new DateTime( $new_renewal_date ); - if ( $test_renewal_date->getTimestamp() < $earliest_date->getTimestamp() ) { - // Adjust the year. - $new_renewal_date = ( date( 'Y' ) - 1 ) . $the_rest; - } } else { $new_renewal_date = date( 'Y-m-d' ); } diff --git a/index.php b/index.php index 05ae478..59178f7 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Billing * Plugin URI: http://www.gaslightmedia.com/ * Description: This is glmAssociate Billing Module - * Version: 1.0.36 + * Version: 1.0.37 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersBillingAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.36 + * @version 1.0.37 */ /* @@ -37,7 +37,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.36'); +define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.37'); // Database Version define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.26'); -- 2.17.1