diff --git a/src/controllers/installationController.js b/src/controllers/installationController.js index cc03c824..9947bdf7 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -1793,7 +1793,7 @@ exports.getMasterSlaveSummary = async (req, reply) => { const diffInMinutes = now.diff(indiaTime, "minutes"); gsmStatus = diffInMinutes <= 1 ? "connected" : "disconnected"; - gsmLastCheckTime = now.format("DD-MM-YYYY HH:mm:ss"); + gsmLastCheckTime =master.gsm_last_check_time; if (gsmStatus === "disconnected") { // Update disconnect time with latest disconnect timestamp @@ -1827,7 +1827,7 @@ exports.getMasterSlaveSummary = async (req, reply) => { let connectedLoraTime = null; let loraStatus = "disconnected"; let loraLastDisconnect = slave.lora_last_disconnect_time || null; - let loraLastCheckTime = now.format("DD-MM-YYYY HH:mm:ss"); + let loraLastCheckTime = slave.lora_last_check_time; let tankHeight = null; // Fetch latest IotData for slave's hardwareId (NOT master's)