Skip to content

Commit

Permalink
Merge pull request #28307 from situchan/revert-27745-lucien/fix-neste…
Browse files Browse the repository at this point in the history
…d-timezone

[No QA] Revert "Prevent nested timezone setting"
  • Loading branch information
cristipaval authored Sep 27, 2023
2 parents f596e35 + 3b1c3e9 commit 13b2291
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libs/Navigation/AppNavigator/AuthScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ Onyx.connect({
// If the current timezone is different than the user's timezone, and their timezone is set to automatic
// then update their timezone.
if (_.isObject(timezone) && timezone.automatic && timezone.selected !== currentTimezone) {
PersonalDetails.updateAutomaticTimezone({
automatic: true,
selected: currentTimezone,
});
timezone.selected = currentTimezone;
PersonalDetails.updateAutomaticTimezone(timezone);
}
},
});
Expand Down

0 comments on commit 13b2291

Please sign in to comment.