mirror of
https://github.com/webmin/webmin.git
synced 2026-06-19 02:40:32 +01:00
Force consistent locale for hwclock command https://github.com/webmin/webmin/issues/379
This commit is contained in:
@@ -150,7 +150,9 @@ sub get_hardware_time
|
||||
my $flags = &get_hwclock_flags();
|
||||
$flags ||= "";
|
||||
$get_hardware_time_error = undef;
|
||||
&clean_language();
|
||||
my $out = &backquote_command("hwclock $flags 2>/dev/null");
|
||||
&reset_environment();
|
||||
if ($out =~ /^(\S+)\s+(\S+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+(\d+)\s+/) {
|
||||
return ($6, $5, $4, $3, &month_to_number($2), $7-1900, &weekday_to_number($1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user