mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
15 lines
365 B
Perl
Executable File
15 lines
365 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Update the timezone
|
|
|
|
require './time-lib.pl';
|
|
&ReadParse();
|
|
$access{'timezone'} || &error($text{'timezone_ecannot'});
|
|
|
|
&error_setup($text{'timezone_err'});
|
|
$in{'zone'} || &error($text{'timezone_enone'});
|
|
&set_current_timezone($in{'zone'});
|
|
&restart_miniserv();
|
|
&webmin_log("timezone", undef, $in{'zone'});
|
|
&redirect("index.cgi?mode=zone");
|
|
|