From 21e07caa5e8c4efcf5fa27b3079d9d7f45efaf9b Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Fri, 6 Jan 2023 13:10:40 -0500 Subject: [PATCH] Update transform.js added US to get the timestamp offset fix --- transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transform.js b/transform.js index 7b9c453..9d163e8 100644 --- a/transform.js +++ b/transform.js @@ -39,7 +39,7 @@ var CARELINK_TREND_TO_NIGHTSCOUT_TREND = { }; function parsePumpTime(pumpTimeString, offset, offsetMilliseconds, medicalDeviceFamily) { - if (process.env['MMCONNECT_SERVER'] === 'EU' || medicalDeviceFamily === 'GUARDIAN') { + if (process.env['MMCONNECT_SERVER'] === 'EU' || medicalDeviceFamily === 'GUARDIAN' || process.env['MMCONNECT_SERVER'] === 'US') { return Date.parse(pumpTimeString) - offsetMilliseconds ; // FIX BY sirKitKat } else { return Date.parse(pumpTimeString + ' ' + offset);