From 052f2ac482cb82473c27b02b9a76d63f95f498f3 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Mon, 9 Dec 2019 07:39:46 +0100 Subject: [PATCH] change date of shortening fees to the date of booking --- services/integration/invoiceIntegration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/integration/invoiceIntegration.js b/services/integration/invoiceIntegration.js index 3eab044..468b968 100644 --- a/services/integration/invoiceIntegration.js +++ b/services/integration/invoiceIntegration.js @@ -165,7 +165,7 @@ const createFeeFromIncident = (incident) => { incidentTimeExplanation = `reservation shortened from [${originalBookingExplanation}] on [${incidentTimestampMoment.clone().format('MMM DD, HH:mm')}]`; incidentExplanation = `${incidentTimeExplanation}`; - date = newBookingStartMoment.clone().startOf('day').format(); + date = newBookingStartMoment.clone().utc(UI_TIMEZONE).startOf('day').format(); price = +totalChargeFee.toFixed(2); quantity = 1.00;