# timezone. DO NOT REMOVE.
if /sbin/hwclock --rtc=/dev/$HCTOSYS_DEVICE --hctosys $GMT $HWCLOCKPARS $BADYEAR $NOADJ; then
# Announce the local time.
- verbose_log_action_msg "System Clock set to: `date $UTC`"
+ verbose_log_action_msg "System Clock set to: `date --rfc-2822 $UTC`"
else
- log_warning_msg "Unable to set System Clock to: `date $UTC`"
+ log_warning_msg "Unable to set System Clock to: `date --rfc-2822 $UTC`"
fi
else
verbose_log_action_msg "Not setting System Clock"
GMT="--utc"
fi
if /sbin/hwclock --rtc=/dev/$HCTOSYS_DEVICE --systohc $GMT $HWCLOCKPARS $BADYEAR $NOADJ; then
- verbose_log_action_msg "Hardware Clock updated to `date`"
+ verbose_log_action_msg "Hardware Clock updated to `date --rfc-2822`"
fi
else
verbose_log_action_msg "Not saving System Clock"