mirror of
https://github.com/unraid/webgui.git
synced 2026-02-05 08:29:17 -06:00
Remove custom time zone choice
This commit is contained in:
@@ -22,23 +22,13 @@ Current date and time:
|
||||
|
||||
Time zone:
|
||||
: <select name="timeZone" size="1"><?
|
||||
if (file_exists("/boot/config/timezone")) {
|
||||
$yr = date('Y') + 1;
|
||||
$tz = exec("zdump -V -c $yr /boot/config/timezone|tail -2|grep -Po 'isdst=0 gmtoff=\K.*'");
|
||||
$hh = strlen($tz) ? sprintf("%'.02d",floor(abs($tz)/3600)) : '??';
|
||||
$mm = strlen($tz) ? sprintf("%'.02d",abs($tz)%3600/60) : '??';
|
||||
$tt = $tz < 0 ? 'UTC-' : 'UTC+';
|
||||
echo mk_option($var['timeZone'], "custom", "($tt$hh:$mm) Custom time zone");
|
||||
}
|
||||
foreach ($keys as $key) {
|
||||
list($timezone, $city) = explode('|', $key);
|
||||
echo mk_option($var['timeZone'], $timezone, $city);
|
||||
}
|
||||
?></select>
|
||||
|
||||
> Select your time zone. You may also define a custom time zone file and have it appear as a selection in the drop-down list.
|
||||
>
|
||||
> To do this, copy your time zone file with name **timezone** to the folder **config** on your flash device.
|
||||
> Select your applicable time zone from the drop-down list.
|
||||
|
||||
Use NTP:
|
||||
: <select name="USE_NTP" size="1" class="narrow" onchange="checkDateTimeSettings(this.form)">
|
||||
|
||||
Reference in New Issue
Block a user