From b98e02aacc9137b10307cfe6dbb0a4fe35860df1 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 25 Feb 2011 14:10:13 +0100 Subject: [PATCH] Use RFC2822 output format for date messages from hwclock.sh Make sure we output unambigous dates Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321862 --- debian/hwclock.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/hwclock.sh b/debian/hwclock.sh index 088867f3..603ad40d 100644 --- a/debian/hwclock.sh +++ b/debian/hwclock.sh @@ -115,9 +115,9 @@ hwclocksh() # 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" @@ -143,7 +143,7 @@ hwclocksh() 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" -- 2.39.5