Skip to content

Commit

Permalink
Update transform.js
Browse files Browse the repository at this point in the history
added US to get the timestamp offset fix
  • Loading branch information
mattster98 authored Jan 6, 2023
1 parent 3308057 commit 21e07ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 21e07ca

Please sign in to comment.