contract change graphic fix for sending date format, remove possible timezone from date string

This commit is contained in:
merelendor 2024-11-19 21:35:33 +03:00
parent 0e078057ca
commit 3ebc3388dd

View File

@ -657,14 +657,14 @@ export default class Options extends React.Component
number_planpayment: options.number_planpayment.value, number_planpayment: options.number_planpayment.value,
}; };
if(number_paydate !== null) { selected.number_paydate = moment(number_paydate).format(); } if(number_paydate !== null) { selected.number_paydate = moment(number_paydate).format("YYYY-MM-DD 00:00:00"); }
if(period_new !== null) { selected.period_new = period_new; } if(period_new !== null) { selected.period_new = period_new; }
if(fix_last_payment_available !== null) { selected.fix_last_payment_available = fix_last_payment_available; } if(fix_last_payment_available !== null) { selected.fix_last_payment_available = fix_last_payment_available; }
if(date_offset_type !== null) { selected.date_offset_type = date_offset_type; } if(date_offset_type !== null) { selected.date_offset_type = date_offset_type; }
if(sum !== null) { selected.sum = sum; } if(sum !== null) { selected.sum = sum; }
if(insurance_price_result !== null) { selected.insurance_price_result = insurance_price_result; } if(insurance_price_result !== null) { selected.insurance_price_result = insurance_price_result; }
//if(early_redemption_change !== null) { selected.early_redemption_change = early_redemption_change; } //if(early_redemption_change !== null) { selected.early_redemption_change = early_redemption_change; }
if(datefrom !== null) { selected.datefrom = moment(datefrom).format(); } if(datefrom !== null) { selected.datefrom = moment(datefrom).format("YYYY-MM-DD 00:00:00"); }
const v = {}; const v = {};
for(let i in variants.types) { v[ variants.types[i].name ] = variants.types[i].value; } for(let i in variants.types) { v[ variants.types[i].name ] = variants.types[i].value; }