diff --git a/code/components/jomjol_time_sntp/time_sntp.cpp b/code/components/jomjol_time_sntp/time_sntp.cpp index e6f023096..78df9d5b4 100644 --- a/code/components/jomjol_time_sntp/time_sntp.cpp +++ b/code/components/jomjol_time_sntp/time_sntp.cpp @@ -178,7 +178,12 @@ bool setupTime() { splitted = ZerlegeZeile(line, "="); if (toUpper(splitted[0]) == "TIMEZONE") { - timeZone = splitted[1]; + if (splitted.size() <= 1) { // parameter part is empty + timeZone = ""; + } + else { + timeZone = splitted[1]; + } } if (toUpper(splitted[0]) == "TIMESERVER") {