From 2cb4c340093b9f96622d8bc83c29154955e0d481 Mon Sep 17 00:00:00 2001 From: apretori-tic <44908118+apretori-tic@users.noreply.github.com> Date: Tue, 18 Dec 2018 17:15:00 +0000 Subject: [PATCH] Ignore tzdata.zi and leapseconds tzdb files on Linux when loading time zones (#411) --- src/tz.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tz.cpp b/src/tz.cpp index e1eef16..7b9eb10 100644 --- a/src/tz.cpp +++ b/src/tz.cpp @@ -2660,6 +2660,8 @@ init_tzdb() strcmp(d->d_name, "+VERSION") == 0 || strcmp(d->d_name, "zone.tab") == 0 || strcmp(d->d_name, "zone1970.tab") == 0 || + strcmp(d->d_name, "tzdata.zi") == 0 || + strcmp(d->d_name, "leapseconds") == 0 || strcmp(d->d_name, "leap-seconds.list") == 0 ) continue; auto subname = dirname + folder_delimiter + d->d_name;