From fb8dbcf44b872ac75083443308708f311d534814 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 16 Apr 2016 09:49:38 -0700 Subject: [PATCH] Use a uniform format for log timestamps Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 26ea07026..beb1bde0b 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -1713,7 +1713,7 @@ sub progress_message { @localtime = localtime unless $havelocaltime; - printf $log '%s %2d %2d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; + printf $log '%s %2d %02d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; print $log "${leading}${line}\n"; } } @@ -1732,7 +1732,7 @@ sub progress_message_nocompress { @localtime = localtime unless $havelocaltime; - printf $log '%s %2d %2d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; + printf $log '%s %2d %02d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; print $log "@_\n"; } } @@ -1753,7 +1753,7 @@ sub progress_message2 { @localtime = localtime unless $havelocaltime; - printf $log '%s %2d %2d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; + printf $log '%s %2d %02d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; print $log "@_\n"; } } @@ -1774,7 +1774,7 @@ sub progress_message3 { @localtime = localtime unless $havelocaltime; - printf $log '%s %2d %2d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; + printf $log '%s %2d %02d:%02d:%02d ', $abbr[$localtime[4]], @localtime[3,2,1,0]; print $log "@_\n"; } }