IO-1708 Remove timezone from date fields on server calcuations.

This commit is contained in:
Patrick Fic
2022-02-09 16:29:16 -08:00
parent 4c70351429
commit f8695972a3
5 changed files with 15 additions and 12 deletions

View File

@@ -129,7 +129,7 @@ const generatePayment = (payment, isThreeTier, twoTierPref, bodyshop) => {
payment.job.bodyshop.md_responsibility_centers.ar.accountname,
},
TxnDate: moment(payment.date)
.tz(bodyshop.timezone)
// .tz(bodyshop.timezone)
.format("YYYY-MM-DD"), //Trim String
RefNumber: payment.paymentnum || payment.transactionid,
TotalAmount: Dinero({
@@ -175,7 +175,7 @@ const generatePayment = (payment, isThreeTier, twoTierPref, bodyshop) => {
payment.job.bodyshop.md_responsibility_centers.ar.accountname,
},
TxnDate: moment(payment.date)
.tz(bodyshop.timezone)
//.tz(bodyshop.timezone)
.format("YYYY-MM-DD"), //Trim String
RefNumber:
payment.paymentnum || payment.stripeid || payment.transactionid,