The time zone database (date_time_zonespec.csv or boost_1_55_0/libs/date_time/data/date_time_zonespec.csv) of boost::date_time library seems not to be up to date. Is there a way to generate it from latest version of IANA time zone database?
Asked
Active
Viewed 2,595 times
2 Answers
3
This should be the answer found in boost::locale reference:
Why don't you use Boost.DateTime time zone support?
Boost.DateTime's time zone support is broken. Time zones can not be represented with a simple table of rules where daylight saving depend only on certain n'th day of week in month. The daylight savings time may vary by year, political issues and many other things.

stoycho
- 223
- 3
- 17
1
There is also the new C++20 date functions, added to the chrono lib. It can use your system's TZ database, at least on Linux/Mac, or you can have the library automatically download the latest TZ to a folder instead. You can try it out here: https://github.com/HowardHinnant/date

Azmisov
- 6,493
- 7
- 53
- 70