Skip to content

Commit

Permalink
CIVIEWAY-255 Match granularity of fillTokensMeta expiry date to existing
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-fj committed Jul 28, 2023
1 parent e988f1d commit d36cf8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/eWAYRecurring/PaymentToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ public static function fillTokensMeta() {

$card_number = $card_details->Number;

$expiry_date = new DateTime();
$expiry_date = new DateTime('00:00:00.000');
$expiry_date->setDate(2000 + (int) $card_details->ExpiryYear, $card_details->ExpiryMonth, 1);
$expiry_date->modify('+ 1 month - 1 day');
$expiry_date->modify('+ 1 month - 1 second');

$expiry_date = $expiry_date->format('Ymd');

Expand Down

0 comments on commit d36cf8b

Please sign in to comment.