Skip to content

Commit

Permalink
Update profilefunctions.js
Browse files Browse the repository at this point in the history
From sulka nightscout#7833
  • Loading branch information
marionbarker committed Jan 18, 2023
1 parent 195e8f9 commit 2eda642
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/profilefunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ function init (profileData) {
};

profile.getTimezone = function getTimezone (spec_profile) {
return profile.getCurrentProfile(null, spec_profile)['timezone'];
let rVal = profile.getCurrentProfile(null, spec_profile)['timezone'];
// Work around Loop uploading non-ISO compliant time zone string
if (rVal) rVal.replace('ETC','Etc');
return rVal;
};

profile.hasData = function hasData () {
Expand Down

0 comments on commit 2eda642

Please sign in to comment.