Bug #4478
Updated by Alex Afanasyev almost 7 years ago
```c++ BOOST_AUTO_TEST_CASE(LargeDates) { auto value = fromUnixTimestamp(milliseconds(1390966967032LL)); BOOST_CHECK_EQUAL(toIsoString(value), "20140129T034247.032000"); BOOST_CHECK_EQUAL(fromIsoString("20140129T034247.032000"), value); value += days(365 * 100 + 25 - 1); // 36524 days BOOST_CHECK_EQUAL(toIsoString(value), "21140129T034247.032000"); BOOST_CHECK_EQUAL(fromIsoString("21140129T034247.032000"), value); } ``` Expected: all tests passed Actual: ``` ../tests/unit-tests/util/time.t.cpp(89): error in "LargeDates": check fromIsoString("21140129T034247.032000") == value failed [251673271032000000 nanoseconds since Jan 1, 1970 != 4546640567032000000 nanoseconds since Jan 1, 1970] ``` snippet to be provided soon Note. The issue seem to have been fixed in Boost 1.66 and later, however all Linux distributions have older versions of Boost that have the issue.