diff --git a/usr/bin/archboot-clock.sh b/usr/bin/archboot-clock.sh index 191f8832a..9db3b5a84 100755 --- a/usr/bin/archboot-clock.sh +++ b/usr/bin/archboot-clock.sh @@ -64,10 +64,10 @@ _timeset() { if [[ -z "${_SET_TIME}" ]]; then timedatectl set-ntp 0 # display and ask to set date/time - _dialog --title " Date " --no-cancel --calendar "Use to navigate and arrow keys to change values." 0 0 0 0 0 2> ${_ANSWER} - _DATE="$(cat ${_ANSWER})" - _dialog --title " Time " --no-cancel --timebox "Use to navigate and up/down to change values." 0 0 2> ${_ANSWER} - _TIME="$(cat ${_ANSWER})" + _dialog --title " Date " --no-cancel --calendar "Use to navigate and arrow keys to change values." 0 0 0 0 0 2>"${_ANSWER}" + _DATE="$(cat "${_ANSWER}")" + _dialog --title " Time " --no-cancel --timebox "Use to navigate and up/down to change values." 0 0 2>"${_ANSWER}" + _TIME="$(cat "${_ANSWER}")" # save the time # DD/MM/YYYY hh:mm:ss -> YYYY-MM-DD hh:mm:ss _DATETIME="$(echo "${_DATE}" "${_TIME}" | sed 's#\(..\)/\(..\)/\(....\) \(..\):\(..\):\(..\)#\3-\2-\1 \4:\5:\6#g')"