);
          if (!response.ok) {
            throw new Error('Response not valid');
          }

          const result = await response.json();
          const ptzSelector = document.querySelector(".presetTimezones");
          for (const ptzName in result) {
            ptzSelector.appendChild(
              new Option(ptzName, result[ptzName])
            );
          }

          ptzSelector.addEventListener("change", async (event) => {
            document.querySelector("[name='system[ntp][timezone]']"