mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Don't reread list of TZs every time
This commit is contained in:
+4
-2
@@ -452,8 +452,10 @@ namespace {
|
||||
}
|
||||
|
||||
SCString CUtils::GetTimezones() {
|
||||
SCString result;
|
||||
FillTimezones("/usr/share/zoneinfo", result, "");
|
||||
static SCString result;
|
||||
if (result.empty()) {
|
||||
FillTimezones("/usr/share/zoneinfo", result, "");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user