From ca968ac483fb6c4a931cdc42e14d2149b7a7abf9 Mon Sep 17 00:00:00 2001 From: Varun Date: Tue, 8 Apr 2025 10:33:15 +0530 Subject: [PATCH] changes in motordata --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 67ab1693..635a2978 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -397,7 +397,7 @@ exports.getTankmotordata = async (req, reply) => { // Convert input dates to ISO 8601 format for Date comparison const start = moment(startDate, "DD-MMM-YYYY - HH:mm").toDate(); - const end = moment(stopDate, "DD-MMM-YYYY - HH:mm").toDate(); + const end = moment(stopDate, "DD-MMM-YYYY - HH:mm").endOf('day').toDate(); // Convert input dates to string format for string-based comparison