// Changed 1 year from int to strtotime '+1 year' value (cleaner)

This commit is contained in:
François Gaillard
2012-03-14 08:41:18 +00:00
parent 9439ad030e
commit 330af6b859
@@ -88,7 +88,7 @@ class LoyaltyDefaultModuleFrontController extends ModuleFrontController
$dateFrom += 60 * 60 * 24 * (int)Configuration::get('PS_ORDER_RETURN_NB_DAYS');
$cartRule->date_from = date('Y-m-d H:i:s', $dateFrom);
$cartRule->date_to = date('Y-m-d H:i:s', $dateFrom + 31536000); // + 1 year
$cartRule->date_to = date('Y-m-d H:i:s', strtotime($cartRule->date_from.' +1 year'));
$cartRule->minimum_amount = (float)Configuration::get('PS_LOYALTY_MINIMAL');
$cartRule->active = 1;