Fix empty TZ error

This commit is contained in:
cangyin 2024-08-27 09:50:10 +08:00
parent d61f833cfa
commit 44dcee5b11

View File

@ -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 + "': ";