In app purchase ERROR

Hello, I’m getting error “invalid time value” from In App Purchase V1 native plugin, then i try to buy consumable item.

my code is :

 buy(product) {
  let d:any;
      .then(data => {
        this.iap.consume(data.productType, data.receipt, data.signature);
        d = data;
      .then(() => {
      .catch( err=> alert(':'+err.message+' '+err.status))

Can you guys please tell me solution to fix that.

Found issue. Date variable was null and i tried to alert it.