From: Tollef Fog Heen Date: Fri, 25 Feb 2011 13:10:13 +0000 (+0100) Subject: Use RFC2822 output format for date messages from hwclock.sh X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b98e02aacc9137b10307cfe6dbb0a4fe35860df1;p=util-linux 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 --- 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"