Re: [Boost-bugs] [Boost C++ Libraries] #2809: [patch] Date Time exception with MinGW

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2809: [patch] Date Time exception with MinGW
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-09 09:42:32

#2809: [patch] Date Time exception with MinGW
  Reporter: Claudio Bley | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: Boost 1.39.0 | Component: date_time
   Version: Boost 1.38.0 | Severity: Problem
Resolution: | Keywords:

Comment(by Claudio Bley):


 Replying to [comment:2 anonymous]:
> As noted by Bruno Dutra on the Boost Users mailing list ("Exception:
 could not convert calendar time to UTC time"), the exception problem can
 be solved by replacing the type of the variable micros by std::time_t
 (boost/date_time/microsec_time_clock.hpp, revision 49874, line 90).

 Granted, this prevents the exception -- but microsec_clock::create_time()
 returns entirely wrong results.

 cout << boost::posix_time::microsec_clock::local_time() << endl;

 1970-Jan-01 01:43:38.138948
 And, no, my system date is not set to 1970-Jan-01. ;)

 Regards, Claudio

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC