IO-1708 Remove timezone from date fields on server calcuations.
This commit is contained in:
@@ -179,11 +179,11 @@ async function InsertBill(oauthClient, qbo_realmId, req, bill, vendor) {
|
||||
value: vendor.Id,
|
||||
},
|
||||
TxnDate: moment(bill.date)
|
||||
.tz(bill.job.bodyshop.timezone)
|
||||
//.tz(bill.job.bodyshop.timezone)
|
||||
.format("YYYY-MM-DD"),
|
||||
...(bill.vendor.due_date && {
|
||||
DueDate: moment(bill.date)
|
||||
.tz(bill.job.bodyshop.timezone)
|
||||
//.tz(bill.job.bodyshop.timezone)
|
||||
.add(bill.vendor.due_date, "days")
|
||||
.format("YYYY-MM-DD"),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user