function removeFavoriteTimeZone(index) {
  locallySavedTimeZones.splice(index, 1);
  localStorage.setItem("timeZones", JSON.stringify(locallySavedTimeZones));
  readLocalStorage();
  updateFavoriteTimeZones();
  formatFavoriteTimeZones();
  addFavoriteTimeZonesListners();
} // this function listens to typed character in the searchField.
//therefore at a next page reload the correct list of favorite timeZones is shown
therefore at a next page reload the correct list of favorite timeZones is shown
therefore at a next page reload the correct list of favorite timeZones is shown
function removeFavoriteTimeZone(index) {
  locallySavedTimeZones.splice(index, 1);
  localStorage.setItem("timeZones", JSON.stringify(locallySavedTimeZones));
  readLocalStorage();
  updateFavoriteTimeZones();
  formatFavoriteTimeZones();
  addFavoriteTimeZonesListners();
} 
function removeFavoriteTimeZone ( index ) { locallySavedTimeZones . splice ( index , 1 ) ; localStorage . setItem ( "timeZones" , JSON . stringify ( locallySavedTimeZones ) ) ; readLocalStorage ( ) ; updateFavoriteTimeZones ( ) ; formatFavoriteTimeZones ( ) ; addFavoriteTimeZonesListners ( ) ; }
therefore at a next page reload the correct list of favorite timeZones is shown
therefore at a next page reload the correct list of favorite timeZones is shown
// this function listens to typed character in the searchField.