[DateTime] Cannot handle 64bit seconds

Hi, when transforming a unix time into a boost::posix_time::ptime, the value of the unix time is truncated to long in for method boost::posix_time::from_time_t. As a result, -4260211200 is represented by some ptime in the year 1971, but it should be 1835. Or, in other words Boost.DateTime has the year 2038 problem. Regards, Roland

On Aug 16, 2010, at 8:00 AM, Roland Bock wrote:
Hi,
when transforming a unix time into a boost::posix_time::ptime, the value of the unix time is truncated to long in for method boost::posix_time::from_time_t.
As a result, -4260211200 is represented by some ptime in the year 1971, but it should be 1835.
Or, in other words Boost.DateTime has the year 2038 problem.
You should definitely create a Trac ticket for this... https://svn.boost.org/ -- Marshall

On 08/16/2010 05:51 PM, Marshall Clow wrote:
On Aug 16, 2010, at 8:00 AM, Roland Bock wrote:
Hi,
when transforming a unix time into a boost::posix_time::ptime, the value of the unix time is truncated to long in for method boost::posix_time::from_time_t.
As a result, -4260211200 is represented by some ptime in the year 1971, but it should be 1835.
Or, in other words Boost.DateTime has the year 2038 problem.
You should definitely create a Trac ticket for this...
Done #4543
participants (2)
-
Marshall Clow
-
Roland Bock