Skip to content

Commit

Permalink
Update profileeditor.js
Browse files Browse the repository at this point in the history
From Sulka nightscout#7833
  • Loading branch information
marionbarker authored Jan 18, 2023
1 parent 3212af4 commit 195e8f9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/profile/profileeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,15 @@ var init = function init () {
c_profile.delay_high = parseInt($('#pe_delay_high').val());
c_profile.delay_medium = parseInt($('#pe_delay_medium').val());
c_profile.delay_low = parseInt($('#pe_delay_low').val());
c_profile.timezone = timezoneInput.val();

// If the zone in the profile matches the editor profile
// but case is different, preserve case

var zone = timezoneInput.val();

if (c_profile.timezone.toLowerCase() == timezoneInput.val().toLowerCase()) zone = c_profile.timezone;

c_profile.timezone = zone;

var index;
[ { prefix:'pe_basal', array:'basal' },
Expand Down

0 comments on commit 195e8f9

Please sign in to comment.