From f991c52cfc20333f35bccb8db2c15a9d79933a9f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 24 Feb 2020 15:17:56 +0100 Subject: [PATCH] Bug 24696: Use strftime Seems easier to me. Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize --- installer/data/mysql/updatedatabase.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 453d425ee5..ae750fdd87 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21306,8 +21306,7 @@ sub NewVersion { $descriptions = [ $descriptions ]; } my $first = 1; - my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); - my $time = sprintf ( "%02d:%02d:%02d", $hour,$min,$sec); + my $time = POSIX::strftime("%H:%M:%S",localtime); for my $description ( @$descriptions ) { if ( @$descriptions > 1 ) { if ( $first ) { -- 2.39.5