function saveTimeZoneToFavorites(timeZoneToSave) {
  locallySavedTimeZones.push(timeZoneToSave);
  locallySavedTimeZones = _.uniqBy(locallySavedTimeZones,'zoneName');
  console.log("uniues ",_.uniqBy(locallySavedTimeZones,'zoneName').length)
  // before you can write to localstorage the data needs to be converted to json
  localStorage.setItem("timeZones", JSON.stringify(locallySavedTimeZones));
}
//this function saves the new timeZone to localstorage
this function saves the new timeZone to localstorage
this function saves the new timeZone to localstorage
function saveTimeZoneToFavorites(timeZoneToSave) {
  locallySavedTimeZones.push(timeZoneToSave);
  locallySavedTimeZones = _.uniqBy(locallySavedTimeZones,'zoneName');
  console.log("uniues ",_.uniqBy(locallySavedTimeZones,'zoneName').length)
  localStorage.setItem("timeZones", JSON.stringify(locallySavedTimeZones));
}
function saveTimeZoneToFavorites ( timeZoneToSave ) { locallySavedTimeZones . push ( timeZoneToSave ) ; locallySavedTimeZones = _ . uniqBy ( locallySavedTimeZones , 'zoneName' ) ; console . log ( "uniues " , _ . uniqBy ( locallySavedTimeZones , 'zoneName' ) . length ) localStorage . setItem ( "timeZones" , JSON . stringify ( locallySavedTimeZones ) ) ; }
this function saves the new timeZone to localstorage
this function saves the new timeZone to localstorage
// before you can write to localstorage the data needs to be converted to json