Add Swiss timezone (Europe/Zurich) to timezone selectors

The timezone lists are hardcoded. Add "Europe (Switzerland)" =
Europe/Zurich to:
- Admin/Templates/editServerSet.tpl (admin: edit server settings)
- install/templates/config.tpl (install wizard, index 14)
- install/index.php (install wizard tz index->name mapping, case 14)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
TravianZ Patcher
2026-06-03 11:16:19 +02:00
parent 46d63e737c
commit 2f2f0f5a47
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -59,6 +59,7 @@ function refresh(tz) {
<option value="Australia/Melbourne" <?php if (TIMEZONE=="Australia/Melbourne") echo "selected";?>>Australia</option>
<option value="Europe/Bucharest" <?php if (TIMEZONE=="Europe/Bucharest") echo "selected";?>>Europe (Bucharest)</option>
<option value="Europe/London" <?php if (TIMEZONE=="Europe/London") echo "selected";?>>Europe (London)</option>
<option value="Europe/Zurich" <?php if (TIMEZONE=="Europe/Zurich") echo "selected";?>>Europe (Switzerland)</option>
<option value="Indian/Maldives" <?php if (TIMEZONE=="Indian/Maldives") echo "selected";?>>Indian</option>
<option value="Pacific/Fiji" <?php if (TIMEZONE=="Pacific/Fiji") echo "selected";?>>Pacific</option>
</select>
+1
View File
@@ -22,6 +22,7 @@ $tz=(isset($_GET['t']))? (int)$_GET['t'] : 8;
case 11: $t_zone="Indian/Maldives";break;
case 12: $t_zone="Pacific/Fiji";break;
case 13: $t_zone="America/Sao_Paulo";break;
case 14: $t_zone="Europe/Zurich";break;
default: $t_zone="America/Sao_Paulo";break;
}
date_default_timezone_set($t_zone);
+1
View File
@@ -101,6 +101,7 @@ $dbPrefix = $_SESSION['install_random_prefix'];
<option value="7,Australia/Melbourne" <?=$tz==7?'selected':''?>>Australia</option>
<option value="8,Europe/Bucharest" <?=$tz==8?'selected':''?>>Europe (Bucharest)</option>
<option value="9,Europe/London" <?=$tz==9?'selected':''?>>Europe (London)</option>
<option value="14,Europe/Zurich" <?=$tz==14?'selected':''?>>Europe (Switzerland)</option>
<option value="10,Europe/Bratislava" <?=$tz==10?'selected':''?>>Europe (Bratislava)</option>
<option value="11,Indian/Maldives" <?=$tz==11?'selected':''?>>Indian</option>
<option value="12,Pacific/Fiji" <?=$tz==12?'selected':''?>>Pacific</option>