id summary reporter owner description type status milestone component version severity resolution keywords cc 12214 boost::posix_time::time_duration::sec_type is too small! anonymous James E. King, III "This code: sec_type total_seconds() const { return static_cast(ticks() / ticks_per_second()); } is unsafe as sec_type is int32_t while ticks() is int64_t. See this post for an easy way to have inconsistent result when using boost::posix_time::time_duration::total_seconds(). sec_type should be enlarged to int64_t" Bugs closed Boost 1.66.0 date_time Boost 1.61.0 Problem duplicate