From bdd5056c9a1efb1540f814599504c484a23291d0 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Mon, 6 Oct 2025 21:35:31 -0700 Subject: [PATCH] IO-3395 Postback Payment Date Signed-off-by: Allan Carr --- server/intellipay/lib/handleCommentBasedPayment.js | 4 +++- server/intellipay/lib/handleInvoiceBasedPayment.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/intellipay/lib/handleCommentBasedPayment.js b/server/intellipay/lib/handleCommentBasedPayment.js index af862c7a1..b6f503d33 100644 --- a/server/intellipay/lib/handleCommentBasedPayment.js +++ b/server/intellipay/lib/handleCommentBasedPayment.js @@ -48,7 +48,9 @@ const handleCommentBasedPayment = async (values, decodedComment, logger, logMeta payer: "Customer", type: getPaymentType(ipMapping, values.cardtype), jobid: p.jobid, - date: moment(Date.now()).tz(bodyshop.bodyshops_by_pk.timezone || "UTC"), + date: moment() + .tz(bodyshop.bodyshops_by_pk.timezone || "UTC") + .format("YYYY-MM-DD"), payment_responses: { data: { amount: values.total, diff --git a/server/intellipay/lib/handleInvoiceBasedPayment.js b/server/intellipay/lib/handleInvoiceBasedPayment.js index aca480d5f..2279a9da5 100644 --- a/server/intellipay/lib/handleInvoiceBasedPayment.js +++ b/server/intellipay/lib/handleInvoiceBasedPayment.js @@ -97,7 +97,9 @@ const handleInvoiceBasedPayment = async (values, logger, logMeta, res) => { payer: "Customer", type: getPaymentType(ipMapping, values.cardtype), jobid: job.id, - date: moment(Date.now()).tz(bodyshop.timezone || "UTC") + date: moment() + .tz(bodyshop.timezone || "UTC") + .format("YYYY-MM-DD") } });