config_query SET_LOCALTIME "Would you like sorcery to manage your local time zone (/etc/localtime)?" y &&

if [ $SET_LOCALTIME == "y" ]; then
  message "\nThe answer to the next query is saved - you do not need to reselect your" &&
  message "local time zone, unless this spell was cast with the reconfigure flag." &&
  if query "Would you like to select your local time zone? (otherwise UTC will be selected)" n; then
    persistent_add LOCAL_TIMEZONE &&
    LOCAL_TIMEZONE=`dialog --backtitle "Time Zone Configuration"             \
                           --title     "Time Zone Selection"                 \
                           --stdout                                          \
                           --radiolist "Please select your local time zone.\nUTC will be selected if nothing else is." \
                           0 0 0                                             \
                           --file "$SCRIPT_DIRECTORY"/timezones`
  fi
fi
