Skip to content

Commit

Permalink
remove updateTimezone function in PersonalDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
aimane-chnaif committed Oct 14, 2022
1 parent 8527676 commit c60d3b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/libs/actions/PersonalDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import * as LoginUtils from '../LoginUtils';
import * as ReportUtils from '../ReportUtils';
import Growl from '../Growl';
import * as Localize from '../Localize';
import DateUtils from '../DateUtils';

let currentUserEmail = '';
Onyx.connect({
Expand Down Expand Up @@ -260,14 +259,6 @@ function setPersonalDetails(details, shouldGrowl) {
});
}

/*
* Updates user's timezone, if their timezone is set to automatic and
* is different from current timezone
*/
function updateTimezone() {
setPersonalDetails({timezone: DateUtils.getCurrentTimezone()});
}

function updateProfile(firstName, lastName, pronouns, timezone) {
API.write('UpdateProfile', {
firstName,
Expand Down Expand Up @@ -400,7 +391,6 @@ export {
getFromReportParticipants,
getDisplayName,
setPersonalDetails,
updateTimezone,
updateAvatar,
deleteAvatar,
openIOUModalPage,
Expand Down

0 comments on commit c60d3b7

Please sign in to comment.