File: save_timezone.cgi

package info (click to toggle)
webmin 1.180-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 16,900 kB
  • ctags: 2,152
  • sloc: perl: 55,792; java: 1,362; sh: 980; ansic: 221; makefile: 191
file content (13 lines) | stat: -rwxr-xr-x 325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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'});
&webmin_log("timezone", undef, $in{'zone'});
&redirect("");