mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Support version 3 tzfile format which is almost the same as version 2.
See ftp://ftp.iana.org/tz/code/tzfile.5.txt.
This commit is contained in:
parent
541c779a13
commit
0017aa6edc
@ -366,7 +366,7 @@ namespace IANAParser
|
||||
auto isgmt_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.ttisgmtcnt)));
|
||||
auto isstd_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.ttisstdcnt)));
|
||||
auto leap_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.leapcnt)));
|
||||
if (tzh.version == '2' && sizeof(time_t) == sizeof(int64_t))
|
||||
if ((tzh.version == '2' || tzh.version == '3') && sizeof(time_t) == sizeof(int64_t))
|
||||
{
|
||||
fb_index = (sizeof(tzh) +
|
||||
(sizeof(uint32_t) + sizeof(uint8_t)) * time_count +
|
||||
|
Loading…
Reference in New Issue
Block a user