Skip to content

Commit 05b3d85

Browse files
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>
1 parent c51643b commit 05b3d85

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

initrd/bin/change-time.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33

44
clear
55

6-
echo -e -n "Please enter the current date and time in UTC\n"
7-
echo -e -n "To find the current date and time in UTC, please check https://time.is/UTC\n\n"
8-
6+
echo "The system time is: $(date "+%Y-%m-%d %H:%M:%S %Z")"
7+
echo
8+
echo "Please enter the current date and time in UTC"
9+
echo "To find the current date and time in UTC, please check https://time.is/UTC"
10+
echo
911

1012
get_date () {
1113
local field_name min max
@@ -63,7 +65,7 @@ while ! enter_time_and_change; do
6365
done
6466

6567
hwclock -w
66-
echo "The system date has been sucessfully set to $year-$month-$day $hour:$min:$sec"
68+
echo "The system date has been sucessfully set to $year-$month-$day $hour:$min:$sec UTC"
6769
echo
6870

6971
echo "Press Enter to return to the menu"

0 commit comments

Comments
 (0)