[datepp] check for TZDIR when looking up zoneinfo

pull/1265/head
Tim Stack 3 weeks ago
parent 8aa72b16e4
commit dd47e66832

@ -347,6 +347,11 @@ static
std::string
discover_tz_dir()
{
auto tz_dir_env = getenv("TZDIR");
if (tz_dir_env != nullptr && tz_dir_env[0]) {
return tz_dir_env;
}
struct stat sb;
using namespace std;
# ifndef __APPLE__

Loading…
Cancel
Save