change-time.sh: Remind of the system time when beginning

Show the system time when starting to change the time.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2024-08-06 14:01:49 -04:00
parent c51643b65a
commit 05b3d85c93
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -3,9 +3,11 @@
clear
echo -e -n "Please enter the current date and time in UTC\n"
echo -e -n "To find the current date and time in UTC, please check https://time.is/UTC\n\n"
echo "The system time is: $(date "+%Y-%m-%d %H:%M:%S %Z")"
echo
echo "Please enter the current date and time in UTC"
echo "To find the current date and time in UTC, please check https://time.is/UTC"
echo
get_date () {
local field_name min max
@ -63,7 +65,7 @@ while ! enter_time_and_change; do
done
hwclock -w
echo "The system date has been sucessfully set to $year-$month-$day $hour:$min:$sec"
echo "The system date has been sucessfully set to $year-$month-$day $hour:$min:$sec UTC"
echo
echo "Press Enter to return to the menu"