From 44dcee5b116f9cbf5bccdf0e33d8509ddaf21289 Mon Sep 17 00:00:00 2001 From: cangyin Date: Tue, 27 Aug 2024 09:50:10 +0800 Subject: [PATCH] Fix empty TZ error --- src/Common/DateLUT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/DateLUT.cpp b/src/Common/DateLUT.cpp index f9bbe2fbf40..55648bc587a 100644 --- a/src/Common/DateLUT.cpp +++ b/src/Common/DateLUT.cpp @@ -46,7 +46,7 @@ std::string determineDefaultTimeZone() /// may give wrong timezone names - store the name as it is, if possible. std::string tz_name; - if (tz_env_var) + if (!tz_env_var.empty()) { error_prefix = std::string("Could not determine time zone from TZ variable value: '") + tz_env_var + "': ";