diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 6e9d73720..7c55b6bbf 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -3456,7 +3456,7 @@ const std::string format_timezone_hours(const int num) { const std::string base_num = std::to_string(num); - if (num < 10 && num > 0) { + if (num < 10 && num >= 0) { result = "0" + base_num; } else if (num > -10 && num < 0) { result = base_num.substr(0, 1) + "0" + base_num.substr(1);