• Great plugin — has been working well… EXCEPT:
    We have a subscription that we want payment to start first payment March 1, 2020 – but as these come in – they are all getting set for Feb 29, 2020.. I thought it might be a GMT time difference (server is California) – so set start date to March 2, 2020 — STILL comes in as Feb 29, 2020 for first payment date — perhaps a leap year issue??

Viewing 1 replies (of 1 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @webhelpercom,

    Good morning, this is really strange.

    This is calculated in this way.

    	$earlier = new DateTime();
    	$later = new DateTime( $date );
    
    	return $later->diff($earlier)->format("%a");

    $date is the first payment date you saved, so it should work also in “leap year”. This works with standard PHP diff calc operation for dates.

    Maybe some kind of server date settings?

Viewing 1 replies (of 1 total)
  • The topic ‘First date set to 3/2/20 (march 2, 2020, US) – but date gets set to 2/29/20’ is closed to new replies.