mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 07:53:16 +08:00
Ignore tzdata.zi and leapseconds tzdb files on Linux when loading time zones (#411)
This commit is contained in:
parent
7231a182a4
commit
2cb4c34009
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user