fix wtv-setup incorrect optimizations

This commit is contained in:
zefie
2025-08-12 16:41:53 -04:00
parent dcb8b72c1b
commit 733200c897
10 changed files with 25 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
var minisrv_service_file = true;
const minisrv_service_file = true;
let timezone = "-0000";
let zip = "";
@@ -15,7 +15,7 @@ if (session_data.isRegistered()) {
}
}
strf = strftime.timezone(timezone)
const strf = strftime.timezone(timezone)
headers = `200 OK
Connection: Keep-Alive
@@ -28,7 +28,7 @@ Content-Type: text/html`
html = `<HTML>
data = `<HTML>
<HEAD>
<TITLE>
Region Settings
@@ -88,13 +88,13 @@ const timezones = [
["UTC+08:00", "+0800"], ["UTC+09:00", "+0900"], ["UTC+10:00", "+1000"], ["UTC+11:00", "+1100"], ["UTC+12:00", "+1200"]
];
html += `<select name="timezone" onchange="this.form.submit()">\n`;
data += `<select name="timezone" onchange="this.form.submit()">\n`;
for (const tz of timezones) {
html += ` <option value="${tz[1]}" ${tz[1] === timezone ? 'selected' : ''}>${tz[0]}</option>\n`;
data += ` <option value="${tz[1]}" ${tz[1] === timezone ? 'selected' : ''}>${tz[0]}</option>\n`;
}
html += `</select>`;
data += `</select>`;
html += `</form>
data += `</form>
<p>
@@ -137,6 +137,4 @@ html += `</form>
</TABLE>
</BODY>
</HTML>
`;
data = html;
`;