Add additional timezones

This commit is contained in:
jpirnay
2026-04-20 20:40:38 +02:00
parent 02ddce1301
commit a6aed8d30e
7 changed files with 60 additions and 11 deletions
+8 -2
View File
@@ -1238,8 +1238,14 @@ void CrossPointWebServer::handleGetSettings() const {
doc["value"] = static_cast<int>(s.callValueGetter());
}
JsonArray options = doc["options"].to<JsonArray>();
for (const auto& opt : s.enumValues) {
options.add(I18N.get(opt));
if (!s.enumLabels.empty()) {
for (const auto& opt : s.enumLabels) {
options.add(opt);
}
} else {
for (const auto& opt : s.enumValues) {
options.add(I18N.get(opt));
}
}
break;
}